'use strict'
(function(stdin) { 
  var inputs = stdin.toString();
  var flines = inputs.split('\n')[0].split(' ').map(Number);
  var a = flines[0];
  var b = flines[1];
  var area = a * b;
  var pepriphery = 2*(a + b);

  console.log(area,periphery);

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