(function(stdin) {
  // Define Function
  function splitCols(line, sep) {
    return line.split(sep);
  }
  function Squire(width, height) {
    this.height = height;
    this.width = width;
    this.getArea = function() {
      return this.width * this.height;
    };
    this.getPeriphery = function() {
      return (this.width + this.height) * 2;
    };
  }
  // Declare Variable
  const inputs  = stdin.toString().trim().split('\n');
  const cols    = splitCols(inputs[0], ' ').map(Number);
  // Main Procedure
  const result = (function(a, b) {
    const squire = new Squire(a, b);
    return [squire.getArea(), squire.getPeriphery()].join(' ');

  }(cols[0], cols[1]
  ));

  // Display
  console.log(result);

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