#include <iostream> using namespace std; int main() { int n, a[100]; while (cin >> n) { double sum = 0; for (int i = 0; i < n; i++) { cin >> a[i]; sum += a[i]; } for (i = 0; i < n; i++) { if (a[i] < sum / n) { cout << a[i] << " "; } } cout << endl; } }