'use strict';

function Main(INPUT) {
    const input = INPUT.split("\n")[0].split(" ").map(n => Number(n));
    console.log(Math.ceil((input[0] + input[1]) / 2));
    
}

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