var stdin = require('fs').readFileSync('/dev/stdin', 'utf8');

var inputs = stdin.toString().trim();

var x = Number(inputs.split(' ')[0]);

var y = Number(inputs.split(' ')[1]);

var area = x * y;
var around = 2 * x + 2 * y;
console.log(area + ' ' + around);