#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
usingnamespace std;
int main(int argc, char** argv) {
int t,counter;
cin>>t;
double num[t];
double sum =0,avg,excellence;
for(i=0;i<t;i++){
int counter = 0;
cin>>num[i];
sum+=num[i];
avg=sum/t;}
for(int a=0;a<t;a++){
counter = 0;
if(num[a]>avg){
counter++;}
}
excellence= counter/ t;
cout<<excellence<<endl;
return 0;
}