#include using namespace std; int main(){ int X,Y,Z; cin >> X >> Y >> Z; cout << (X+Y+Z)/2 << endl; return 0; }