text: #include <iostream>
  #include <string>
  #include <vector>
  #include <map>
  #include <algorithm>
  #include <cmath>
  using namespace std;
  using ll = long long;
  
  int main(int argc, const char * argv[]) {
      int a, b;
      cin >> a >> b;
      cout << (int)((a + b) / 2.0 + 0.5) << endl;
      return 0;
  }
  