
function Main(input) {
    var A = parseInt(input[0], 10);
    var P = parseInt(input[1], 10);

    var sum = P;

    sum += A * 3;

    console.log(Math.floor(sum/2));

}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));