#K58822. Elements Greater than the Mean
Elements Greater than the Mean
Elements Greater than the Mean
You are given a list of integers. Your task is to compute the arithmetic mean \(\mu\) of the list and then output all the elements of the list that are strictly greater than \(\mu\). The arithmetic mean is computed as \(\mu = \frac{\sum_{i=1}^{n} a_i}{n}\), where \(n\) is the number of elements and \(a_i\) are the elements of the list.
If no element is greater than the mean, output nothing (an empty line).
Note: The input will be read from standard input and the output should be printed to standard output.
inputFormat
The first line contains an integer \(n\) representing the number of elements in the list. The second line contains \(n\) space-separated integers.
outputFormat
Print the elements that are strictly greater than the arithmetic mean \(\mu\) of the list. The elements should be printed in the order they appear in the original list, separated by a single space. If no such elements exist, print an empty line.
## sample5
1 2 3 4 5
4 5
</p>