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

var input = stdin.toString().trim().split(' ');

var a = parseInt(input[0], 10);
var b = parseInt(input[1], 10);

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