e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

Заняття_4_Python

More than average

Given array of n integers. Find the sum and the amount of numbers, greater than the arithmetic average of array elements.

Input

The first line contains number n. The next line contains n integers. All numbers are not greater than 100 by absolute value.

Output

Print the sum and the amount of numbers, greater than the arithmetic average of array elements.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5
1 6 2 6 3
Output example #1
12 2