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

var inputs = stdin.toString().trim().split(' ').map(Number);

var x = inputs[0];

var y = inputs[1];

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