import std.stdio, std.conv, std.string, std.math;
int main() {
  string[] inputs = split(readln());
  int a = to!int(inputs[0]);
  int b = to!int(inputs[1]);
  real x = a + b / 2.;
 
  writeln(ceil(x));
  return 0;
}