#include using namespace std; int main(){ int x, y, z; cin >> x >> y >> z; cout << min(x,y) + (max(x,y)-min(x,y)+z)/2 << endl; return 0; }