process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk)
{
  var input, height, width, area, outer;
  input = chunk.split(' ').map(Number);
  height = input[0];
  width = input[1];
  area = height * width;
  outer = (height * 2) + (width * 2);
  console.log(area.toString() + ' ' + outer.toString());
});