#include<stdio.h> int main() { int n,i; double a[999]={000},max=0.0,min=100.0,sum=0.0; double avg; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%lf",&a[i]); sum+=a[i]; } avg=sum/n; for(i=0;i<n;i++) { if(max<a[i]) max=a[i]; if(min>a[i]) min=a[i]; } printf("%.2f %.2f %.2f",max,min,avg); return 0;
}