#include #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; void solve() { int x, y, z; cin >> x >> y >> z; cout << ((z == 0 && (x == 0 or y == 0)) ? 0 : (x + y + z) / 2) << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }