#include
#include
#include
int Average(const std::vector& vec)
{
if (vec.size() > 0)
{
int sum = std::accumulate(vec.begin(), vec.end(), 0);
return sum / vec.size();
}
else
{
return 0;
}
}
int main()
{
int n;
std::cin >> n;
std::vector vec(n);
for (int &val : vec)
{
std::cin >> val;
}
int average = Average(vec);
for (const int &val : vec)
{
if (val > average)
{
std::cout << val << " ";</p>
}
}
std::cout << std::endl;</p>
return 0;
}