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