#pragma GCC optimize("Ofast") #include #define rep(i,n) for (int i = 0; i < (n); ++i) #define REP(i,a,b) for (int i = a; i < (b); ++i) #define all(x) (x).begin(),(x).end() const int INF = 1000000007; typedef long long ll; using namespace std; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; } ll lcm(ll a, ll b) { return (a * b) / gcd(a,b); } ll fac(ll a) { return a > 1 ? fac(a - 1) * a : 1; } int solve(){ int x,y,z; cin >> x >> y >> z; while(z != 0){ if(x > y){ y++; z--; } else{ x++; z--; } } cout << min(x,y) << endl; return 0; } int main(){ // ios::sync_with_stdio(false);cin.tie(nullptr); // cout << fixed;cout << setprecision(16) << endl; solve(); return 0; }