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