#include<iostream>
#include<algorithm>
#include<cstdio>
using namespace std;
int main()
{
int n, m;
cin >> n;
int ans1 = -1, ans2 = 101;
double ans3 = 0;
for(int i = 0; i < n; i++)
{
cin >> m;
if(m > ans1) ans1 = m;
if(m < ans2) ans2 = m;
ans3 += m;
}
ans3 = ans3 / n;
cout << ans1 << endl;
cout << ans2 << endl;
printf("%.2lf", ans3);
return 0;
}