#define _USE_MATH_DEFINES #include using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); int x, y, z; cin >> x >> y >> z; while (z) { if (x <= y) x++; else y++; z--; } cout << min(x, y) << '\n'; return 0; }