(function(stdin) {
  // Define Function
  function Square(width, height) {
    return {
      getArea:function() {return width * height;},
      getPeriphery:function() {return (width + height) * 2;}
    };
  }

  // Declare Variable
  const inputs  = stdin.toString().trim().split('\n');
  // const cols = Array.from(inputs[0].split(' '), Number);
  const cols = inputs[0].split(' ').map(Number);

  // Main Procedure
  const result = (function(a, b) {
    const square = Square(a, b);
    return [square.getArea(), square.getPeriphery()].join(' ');

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

  // Display
  console.log(result);

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