#include
#include<bits/stdc++.h>
#include
using namespace std;
int main()
{
int ar[100000];
int n;
cin>>n;
for(int i =0; i<n; i++)
{
cin>>ar[i];
}
cout <<setiosflags(ios::fixed)<<setprecision(3)<<(*max_element(ar,ar+n))<<"\n"<<(*min_element(ar,ar+n))<<"\n"<<accumulate(ar,ar+n,0)*1.0/n;
return 0;
}