function Main(input) {

	input = input.split(" ");
	
	var A = parseInt(input[0]);
	var P = parseInt(input[1]);
	
	var apple = A * 3 + P;
	
	console.log(Math.floor(apple/2));
}

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