"use strict";

function main(arg) {
    arg = arg.split("\n")[0].split(" ").map(n=>parseInt(n));
    console.log(Math.floor((arg[0] + arg[1]) / 2));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));