155. Array Statistics
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

For this task, you will be required to find a set of simple statistics based on a given set of data. Data will be provided as an array of integers, and you will be tasked with finding the mean, median, mode, and range of the data.

Input

The first line will contain $$$n$$$, the number of values in the array. The second line will contain space-separated integers that correspond to the array of input values.

Output

The output should print the mean, median, mode, and range of the provided data in order and separated by lines(ie. the first line has the mean, the second line has the median, etc).

Example
Input
5
2 2 8 1 5
Output
3.6
2.0
2
7