#K52392. Score Statistics

    ID: 29299 Type: Default 1000ms 256MiB

Score Statistics

Score Statistics

You are given a single line of input containing space-separated integers that represent scores. Your task is to compute the following statistics:

  • The highest score
  • The lowest score
  • The average score (rounded down to the nearest integer)

In mathematical terms, if the scores are given by \(a_1, a_2, \ldots, a_n\), you should output:

\[ \max\{a_1, a_2, \ldots, a_n\}, \quad \min\{a_1, a_2, \ldots, a_n\}, \quad \left\lfloor\frac{a_1+a_2+\cdots+a_n}{n}\right\rfloor \]

Print the three values separated by a space.

inputFormat

A single line containing space-separated integers. At least one integer is guaranteed to be present.

outputFormat

Output three integers separated by a single space: the highest score, the lowest score, and the average score (rounded down).## sample

23 67 89 45 32 55 90 100 54 20
100 20 57