#C11748. Predict Temperature

    ID: 41098 Type: Default 1000ms 256MiB

Predict Temperature

Predict Temperature

You are given exactly 10 temperature records, each representing the temperature for a consecutive day. Your task is to predict the temperature for the 11th day by computing the simple moving average of the input temperatures.

The prediction is computed using the formula:

$$T_{11} = \left\lfloor \frac{\sum_{i=1}^{10} T_i}{10} \right\rfloor$$

If the input does not contain exactly 10 temperature records, print the following error message:

The file must contain exactly 10 temperature records.

inputFormat

The input is provided via standard input (stdin) and consists of exactly 10 lines. Each line contains a single integer representing the temperature of one day.

outputFormat

Output a single line to standard output (stdout) containing the predicted temperature (an integer). If the input does not contain exactly 10 temperature records, output the error message:

The file must contain exactly 10 temperature records.
## sample
15
20
23
18
21
19
21
20
22
24
20

</p>