#include <iostream>
using namespace std;
int main(){
    
    int b = 0;
    int a = 0;
    int c = 0;
    cin >> a;
    cin >> b;
    
    c = a + b;
    c = c /2;

    cout << c << endl;

    return 0;
}

