import std.stdio, std.string, std.conv, std.algorithm, std.range, std.math;

void main() {
  string[] s = readln.chomp.split;
  auto input = map!(a => a.to!double)(s);
  double a = input[0], b = input[1];

  writefln("%s", ceil((a + b) / 2));
}
