'use strict';
process.stdin.on('data', function(chunk) {
  var lines = chunk.toString().split('\n');
  var params = lines.split(' ').map(Number);
  var result = (function(m,n) {
    return [
      m * n
      ,2m + 2n
    ].join(' ');
  }(params[0],params[1]
  ));

  console.log(result);
});

process.stdin.resume();
process.stdin.setEncoding('utf8');