process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (f) {
    var lines = f.toString().split(" ");
    var a = lines[0];
    var b = lines[1];
    console.log(a * b + " " + (2 * a + 2 * b));
});