function Main(input) {
  const numbers = input.split('\n').map(n => Number(n));
  const r = numbers[0];
  const g = numbers[1];
  console.log((r + g) / 2);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));