function Main(input) {
  [a, b] = input.split(' ');
  a = parseInt(a);
  b = parseInt(b);
  console.log(a * b + ' ' + 2 * (a + b));
}

function debug() {
  var x = document.getElementById('id1').value;
  var y = document.getElementById('id2').value;
  Main(x + ' ' + y);
}

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

