#include #include #include #include using namespace std; int main(){ int N; cin >> N; char c; cin >> c; string S; getline(cin, S); int M = S.size(); bool ok = true; for (int i = 0; i < M; i++){ if (S[i] == ' '){ ok = false; } } if (!ok){ cout << "assert" << endl; } else { long long A1 = stoll(S); long long A2; cin >> A2; long long A3; cin >> A3; vector A = {A1 + A2, A2 + A3, A3 + A1}; sort(A.begin(), A.end()); A.erase(unique(A.begin(), A.end()), A.end()); cout << A[A.size() - 2] << endl; } }