#include
using namespace std;
int main()
{
int a[10];
for (auto &r : a)
{
cin >> r;
}
int max(a[0]), min(a[0]), sum(a[0]);
for (short i = 1; i != 10; i++)
{
if (a[i] > max)
{
max = a[i];
}
if (a[i] < min)
{
min = a[i];
}
sum += a[i];
}
cout << max << ' ' << min << ' ' << sum / 10 << endl;
system("pause");
return 0;
}