function Main(input){
var A = input.split(" ")[0];
var P = input.split(" ")[1];
var S = new Number(A)*3+new Number(P);
var answer = Math.floor(S/2);
console.log(answer);
}
  Main(require('fs').readFileSync('/dev/stdin','utf8'));