#include #define rep(i,n) for(int i=0;i<(n);++i) using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); string n; getline(cin, n); string s; getline(cin, s); ll a = 0; rep(i, s.size()) { if (s[i] == ' ') { cout << '"' << "assert" << '"' << endl; return 0; } a *= 10; a += s[i] - '0'; } ll b, c; cin >> b >> c; vector d = {a+b,a+c,b+c}; sort(d.begin(), d.end()); if (d[1] == d[2]) cout << d[0]; else cout << d[1]; }