#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define lint long long int /* vectoral(26); al = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; vectorAL(26); AL = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}; */ int main() { vectorvec(4); getline(cin, vec.at(0)); getline(cin, vec.at(1)); lint Z = vec.at(1).size(); lint cnt = 0; for (lint i = 0; i < Z; i++) { if (vec.at(1).at(i) == ' ') { cnt++; } } if (cnt) { cout << '"'<<"assert"<<'"' << endl; } else { getline(cin, vec.at(2)); getline(cin, vec.at(3)); vectorveca(4); for (lint i = 0; i < 4; i++) { veca.at(i) = stoi(vec.at(i)); } vectorvecb(3); for (lint i = 0; i < 3; i++) { vecb.at(i) = veca.at(i + 1); } sort(vecb.begin(), vecb.end()); vectorvecc(3); vecc.at(0) = vecb.at(0) + vecb.at(1); vecc.at(1) = vecb.at(0) + vecb.at(2); vecc.at(2) = vecb.at(1) + vecb.at(2); sort(vecc.begin(), vecc.end()); if (vecc.at(2) != vecc.at(1)) { cout << vecc.at(1) << endl; } else { cout << vecc.at(0) << endl; } } }