function main(input) {
  const menseki = input[0] * input[1];
  const syuui = (input[0] + input[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').map(num => parseInt(num, 10);
  main(input);
});

