In the evening, the temperature is 28 degrees. By midnight it has dropped 31 degrees lower. Between midnight and 4 am it goes down 6 more degrees. Then, by 9 am, the temperature goes up 30 degrees. What is the temperature at 9 am?