var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
  const x = Number.parseInt(lines[0].split(' ')[0]);
  const y = Number.parseInt(lines[0].split(' ')[1]);
  console.log((x * y) + ' ' + (2 *x + 2 * y));
});
