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

var inputs = stdin.toString().trim().split(' ');
var a = parseInt(inputs[0], 10);
var b = parseInt(inputs[1], 10);

console.log(a * b, (a + b)*2);