let x = require('fs').readFileSync('/dev/stdin', 'UTF-8');
let array = x.split(" ");
array[0] = parseInt(array[0]);
array[1] = parseInt(array[1]);
let area = array[0]*array[1];
let rectangle = (array[0]+array[1])*2;
console.log(area + " " + rectangle);
