#include using namespace std; using ll = long long; using P = pair; #define rep(i,n) for(int i=0;i> x >> y >> z; int ans = min(x,y); x -= ans; y -= ans; ans += (max(x,y)+z)/2; cout << ans << endl; return 0; }