#include <iostream>
using namespace std;
int main()
{
int n,sum=0;
cin>>n;
int min1=100,max1=0,m=n;
while(n--)
{
int x;
cin>>x;
sum+=x;//计算成绩的和
if(x>max1) max1=x;//找最大值
if(x<min1) min1=x;//找最小值
}
cout<<max1<<endl<<min1<<endl;
printf("%.2f\n",(double)(sum*1.0/m));
return 0;
}