import java.util.Scanner;
public class Main{
public static void main(String arg[]){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] a = new int[100];
int sum=0;
double p=0;
if(n>=1 && n<=10){
for(int i=0;i<a.length;i++){
a[i] = sc.nextInt();
sum+=a[i];
}
p=sum*1.0/n;
System.out.printf("%.2f",p);
for(int j=0;j<n;j++){
if(a[j]>p){
System.out.print(a[j]+" ");
}
}
}else{
System.out.print("Invalid.");
}
}
}