Elementos maiores que a média

Faça um programa em C que receba uma sequência de números naturais e exiba todos os elementos que são maiores que a média aritmética desta sequência. Considere que a média aritmética é calculada da seguinte maneira: x=1ni=1nxi\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i

Considere também que x\bar{x} é um número inteiro. Caso não haja na sequência nenhum elemento maior que x\bar{x}, exiba o número 00.

Entrada

A primeira linha da entrada contém um inteiro NN significando o tamanho do vetor. A segunda linha possui NN números inteiros positivos ViV_i, onde cada ViV_i é um elemento do vetor.

Considere as seguintes restrições para os valores de entrada:

Saída

A saída é composta por exatamente uma linha, contendo todos os elementos que são maiores do que a média da sequência, onde cada elemento deve ser separado por espaço, com exceção do último. Caso não haja elementos maiores que a média, deve ser impresso em uma única linha o número 00.

Observe os casos de exemplos para melhor entendimento da saída.

Exemplos

1010 elementos neste vetor. A média aritmética desta sequência será: x=110i=110xi=3+5+7+0+1+4+2+0+4+410=3010=3\bar{x} = \frac{1}{10}\sum_{i=1}^{10} x_i = \frac{3 + 5 + 7 + 0 + 1 + 4 + 2 + 0 + 4 + 4}{10} = \frac{30}{10} = 3

O segundo, terceiro, sexto, nono e décimo elementos são maiores que a média. O segundo elemento é o número 55, o terceiro o 77, o sexto o 44, o nono o 44 e o décimo 44.

Elements greater than the average

Write a C program that, given a sequence of natural number, show all elements bigger than the arithmetic mean of this sequence. Consider that the arithmetic mean is calculated as following: x=1ni=1nxi\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i Consider also that the x\bar{x} is an integer number. If there is no element bigger than x\bar{x}, show the number 00.

Input

The first entry line contains an integer number NN meaning the length of the array. The second entry line contains NN positive integers numbers ViV_i, that each ViV_i is an element from the array. Check the restrictions for the input:

Output

Your program must show one line for the output, showing the elements that are bigger than the mean of the sequence, where each element must be split by space except the last one. If there is no elements bigger than the average, your program must show a single line with the number 00 on it.

Check the example below for better understanding of the output.

Examples

There is 1010 element in this array. The arithmetic mean of this sequence will be: x=110i=110xi=3+5+7+0+1+4+2+0+4+410=3010=3\bar{x} = \frac{1}{10}\sum_{i=1}^{10} x_i = \frac{3 + 5 + 7 + 0 + 1 + 4 + 2 + 0 + 4 + 4}{10} = \frac{30}{10} = 3 The second, third, sixth, ninth and tenth elements are bigger than the mean. The second element is the number 55, the third is 77, the sixth is 44, the ninth is 44 and the tenth is 44.

Author: Sinayra Moreira <sinayra.moreira@unb.br>