process.stdin.resume();
process.stdin.setEncoding('utf8');

process.stdin.on('data', function(input) {
  var lines = input.split('\n');
  var ab = lines[0].split(' ');
  var a = +ab[0];
  var b = +ab[1];
  console.log(a*b + ' ' + (a+b)*2);
});