'use strict';
var Main = function(stdin) {
  var line = stdin.split('\n');
  var param = line.split(' ');
  var result = (function(height,width) {
    return [
    	height * width
    	,(height + width) * 2
    ].join(' ');
  }(
    param[0]
    ,param[1]
  ));
  console.log(result);
};

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