Problem

5 /19


Deviation from the average annual temperature

Problem

The program receives 366 lines as input, which contain information about the average daily temperature of all days in 2008. The format of each of the lines is as follows: first, the date is written in the form dd.mm (strictly two characters are allotted to record the number of the day and the number of the month in numerical format, the day is separated from the month by a dot), then the temperature value — a number with a plus or minus sign, accurate to 1 digit after the decimal point. This information is sorted by temperature value, that is, the chronological order is broken. 

It is required to write a program that will display information about the month (months), the average monthly temperature of which (which) deviates least from the average annual temperature. Deviations are considered the same if the difference between them in absolute value does not exceed 0.00001.
In the first line print the average annual temperature. The found values ​​for each of the months should be displayed in a separate line.
Output Format:
average_temperature 
number_of the month value_of_average_monthly_temperature deviation_from_average_annual_temperature