function main(input) {
  var args = input.split(' ');
  var a = Number(args[0]);
  var p = Number(args[1]);

  p = p + a * 3;

  var apple_pie = Math.floor(p / 2);
  
  console.log(a + ' ' + p)
  console.log(apple_pie + '\n\n\n');
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
