#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include #include #include using namespace std; //std::ios::sync_with_stdio(false); //std::cin.tie(0); const long long MOD = 1e9 + 7; typedef long long ll; typedef long double ld; typedef pair pll; typedef pair pdl; typedef pair pdd; typedef vector VLL; typedef vector VVLL; //typedef boost::multiprecision::cpp_int bigint; int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); ll A, B, C; cin >> A >> B >> C; cout << (A + B + C) / 2 << "\n"; return 0; }