#include using namespace std; using ll = long long; #define rep(i, n) for (ll i = 0; i < (n); ++i) int main() { ll A, B, C; cin >> A >> B >> C; cout << (A + B + C) / 2 << endl; }