eolymp
bolt
Try our new interface for solving problems
Problems

More than average

More than average

Given array of $n$ integers. Find the sum and the number of integers, greater than the arithmetic average of array elements. \InputFile The first line contains number $n~(n \le 100)$. The next line contains $n$ integers. All numbers are not greater than $100$ by absolute value. \OutputFile Print the sum and the number of integers, 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