#include "bits/stdc++.h" using namespace std; int main() { long long X[3] = {}; string N, S; getline(cin, N); getline(cin, S); for (int i = 0; i < S.size(); i++) { if (S[i] == ' ') { cout << "assert" << endl; return 0; } X[0] *= 10; X[0] += S[i] - '0'; } cin >> X[1] >> X[2]; vector V(3); V[0] = X[0] + X[1], V[1] = X[1] + X[2], V[2] = X[2] + X[0]; sort(V.begin(), V.end()); V.erase(unique(V.begin(), V.end()), V.end()); reverse(V.begin(), V.end()); cout << V[1] << endl; }