#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; }