In the second week of February, students love to go skiing in the Alps. A well-deserved week away after the exams. But is there enough snow?
A student plans to travel to Axamer Lizum in Austria. On the day of arrival, Saturday, there is 50 cm of snow on the mountain by the end of the ski day. The weather forecast predicts that 5 cm of snowfall will occur every night.
During the day, however, the snow can melt. At temperatures below 0°C, the snow remains, but at temperatures of 1°C and above, the snow melts according to the formula:
Where:
T_{dag} = average daytime temperature in degrees Celsius
Ssnow = melted snow in cm per day
Hsnow = snow height at the beginning of the day
This produces the graph for melted snow at different snow heights depending on the temperature:
Input:
5
Output:
sunday 55
monday 57
tuesday 58
wednesday 60
thursday 62
friday 64
Input:
25
Output:
that is not a temperature between -20 and 20 degrees Celsius