// ※※※ 解答不能. ※※※
// 以下のソースコード参照.
// heno_code氏.
// https://yukicoder.me/submissions/362244
#include <bits/stdc++.h>
using namespace std;
using LL = long long;

void solve(){
    int n;
    cin >> n;
    string s;
    getline(cin, s);
    getline(cin, s);
    for(int i = 0; i < s.length(); i++){
        if(s[i] == ' '){
            cout << "\"assert\"" << endl;
            return;
        }
    }
    LL c[3];
    c[0] = stoll(s);
    cin >> c[1] >> c[2];
    vector<LL> v;
    for(int i = 0; i < 3; i++) v.push_back(c[0] + c[1] + c[2] - c[i]);
    sort(v.begin(), v.end());
    v.erase(unique(v.begin(), v.end()), v.end());
    sort(v.begin(), v.end(), greater<LL>());
    cout << v[1] << endl;
}

signed main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    solve();
    return 0;
}