#include using namespace std; int main(){ int a,b,c; int d; cin >> a>>b>>c; cout << (a+b+c)/2 << endl; return 0; }