#include <bits/stdc++.h>
using namespace std;
  
int main(){
    int a[1000],n,i,max = 0,s = 0;
    cin>>n;
    for(i = 0;i < n;i++){
        cin>>a[i];
        s = s + a[i];
        if(a[i] >= max){
            max = a[i];
        }
    }
      
    cout<<fixed<<setprecision(1)<<(max * 0.9 + s - max) * 0.9<<endl;
}
/**************************************************************
	Problem: 1427
	User: wangyiyang
	Language: C++
	Result: Accepted
	Time:9 ms
	Memory:2072 kb
****************************************************************/