function Main(input) {
	
    input = input.split(" ");
    var a = parseInt(input[0],10);
    var p = parseInt(input[1],10);
    var p = a * 3 + p
    var res = Math.floor(p / 2)
    console.log(res);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));