'use strict';
(function(stdin) { 

  var inputs  = stdin.toString().trim().split('\n');
  var line = inputs[0];
  var cols = line.split(' ').map(Number);
  console.log(cols);


}(require('fs').readFileSync('/dev/stdin', 'utf8')));

parseInt(a, 10);
parseInt(b, 10);
console.log(a * b, (a + b)*2);