'use strict';
(function(stdin) {
  var lines  = stdin.toString().split('\n');
  var params = lines[0].split(' ').map(Number);
  var result = (function(a,b) {

    return [
      a * b
      , (a + b) * 2
    ].join(' ');

  }(params[0],params[1])
  ));
  console.log(result);
}(require('fs').readFileSync('/dev/stdin', 'utf8')));