'use strict'

function Main(input) {
  input = input.split(' ');
  let A = parseInt(input[0]);
  let P = parseInt(input[1]);
  console.log((3*A + P) / 2);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));