'use strict';
(function(stdin) { 
  var inputs = stdin.toString();
  var params = inputs.split('\n')[0].split(' ').map(Number);
  (function(a,b) {
     console.log(a * b,(a + b) * 2)//????????????????????????
  }(params[0],params[1])); 
}(require('fs').readFileSync('/dev/stdin', 'utf8')));