#include<bits/stdc++.h>
using namespace std;
int main(){
int a[123],n,x=0,h=0,sdf=0;
cin>>n;
for(int i=0;i<n;i++){
cin>>a[i];
h=h+a[i];
}
x=a[0];
for(int i=0;i<n;i++){
if(x<a[i]){
x=a[i];
}
}
for(int i=0;i<n;i++){
if(x==a[i]){
sdf++;
}
}
h-=x*sdf;
float w=h*1.0/(n-sdf);
printf("%.1f",w);
}
/**************************************************************
Problem: 1218
User: cyp
Language: C++
Result: Wrong Answer
****************************************************************/