#include <iostream>
#include <iomanipo>
using namespace std;
int main(){
    int n;
    cin>>m;
    if(m>10){
        cout<<"Too many bags";
        return 0;
    }
    for (int j=0; j<m;j++){
        double weight;
        cin>>weight;
        if(weight<0){
            cout<<"Invalid weight";
            return 0;
        }
        totalWeight+=weight;
    }
    cout<<fixed<<setprecision(2)<<totalWeight;
    return 0;
}