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

var input_string = "";
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  input_string = line;
});
reader.on('close', () => {
  const str = input_string.toString();
  const delimiter = /\s/;
  const array = str.split(delimiter);
  const a = Number(array[0]);
  const b = Number(array[1]);
  const area = a*b;
  const length = (a + b) * 2;
  console.log(area,length);
});

