#import <ios>
inline int redn() {
int ret=0,f=1;char ch=getchar();
if(ch == EOF)return-1;
if(ch =='\n')return-2;
while(ch<'0'||ch>'9'){if(ch=='-') f=-f;ch=getchar();}
while(ch>='0'&&ch<='9') ret=ret*10+ch-'0',ch=getchar();
return ret*f;
}
inline void wrtn(int x){
if(x<0){putchar('-');x=-x;}
int y=10,len=1;
while(y<=x){y*=10;len++;}
while(len--){y/=10;putchar(x/y+48);x%=y;}
}
int main()
{
int a;
while((a=redn())!=-1){
int b[a], alb;double c=0;
for(int i=0;i<a;i++){
b[i]=redn();
c+=b[i];
}
c/=a; c*=10;
alb=c;
if(alb%10>=5) c/=10, c+=1;
wrtn(c), putchar_unlocked(10);
}
}