function main() {
  const arr = input[0].split(' ').map(num => parseInt(num, 10));
  const menseki = arr[0] * arr[1];
  const syuui = (arr[0] + arr[1]) * 2;
  console.log(menseki + ' ' + syuui);
}

var input = '';

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});
process.stdin.on('end', function() {
  input = input.split('\n')
  main();
});

