#include void solve() { int x, y, z; std::cin >> x >> y >> z; while (z--) { if (x < y) { ++x; } else { ++y; } } std::cout << std::min(x, y) << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }