process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk)
{
  const [x, y] = chunk.trim().split(' ').map(Number);
  console.log(String(x * y) + ' ' + String((x + y) * 2));
});