"use strict";
function Main(input) {
   const args = input.split(' ').map(m => parseInt(m));
   const A = args.shift();
   const P = args.shift();
   let p = P + A * 3;
   console.log(Math.trunc(p / 2));

}

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