import java.util.;
class Main{
public static void main(String[] args) {
Scanner in =new Scanner(System.in);
int n=in.nextInt();
int sum=0;
int a[]=new int [n];
for(int i=0;i<n;i++) {
a[i]=in.nextInt();
sum+=a[i];
}
Arrays.sort(a);
System.out.println(a[n-1]);
System.out.println(a[0]);
System.out.printf(“%.2f”,sum1.0/n);
}
}