Write a program that reads non-empty sequences of real numbers and, for each sequence, prints its minimum, its maximum and its average.

**Input**

Input consists of a natural number *n*,
followed by *n* sequences.
Each sequence begins with the number of elements *m* > 0,
followed by *m* real numbers.

**Output**

For every sequence, print in a line and with four digits after the decimal point its minimum, its maximum and its average.

Public test cases

**Input**

2 4 4.2 8.7 10 6.3 3 -10 0 8

**Output**

4.2000 10.0000 7.3000 -10.0000 8.0000 -0.6667

Information

- Author
- Salvador Roura
- Language
- English
- Translator
- Carlos Molina
- Original language
- Catalan
- Other languages
- Catalan
- Official solutions
- C++ Java Python
- User solutions
- C C++ Java Python