(function(stdin) {
  var lines = stdin.toString().split('\n');
  var param = lines[0].split(' ').map(Number);
  var a = param[0];
  var b = param[1];

  console.log((a * b),(a + b) *2);
}(require('fs').readFileSync('/dev/stdin', 'utf8')));