var out = function(x) {
  console.log(x);
  return x;
}

var mult = function(a,b) {
  return a * b;
  }

var calc = function(a,b) {
  return a*2 + b*2;
}

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(input) {
  var area = input.split(' ').map(Number).reduce(mult);
  var len = input.split(' ').map(Number).reduce(calc);
  out(area + ' ' + len);
});