function Main(input){
  input = input.split(" ");
  
  var a = parseInt(input[0]);
  var b = parseInt(input[1]);
  var x = (a+b)/2;
  console.log( Math.ceil(x) );
 
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));