var x = require('fs').readFileSync('/dev/stdin', 'utf-8');

function main(input) {
  var temp = input.split(' ');
  var a = parseInt(temp[0]);
  var b = parseInt(temp[1]);
  var length = (a + b)*2;
  var area = a*b;

  console.log(area + ' ' + length);
}

main(x);
