process.stdin.resume();
process.stdin.setEncoding('utf8');
// Here your code !
process.stdin.on( 'data', function(x) {
    calc(x);
});

function calc(x){
    var ary = x.split(" ");
    
    var y = parseInt(ary[0].trim(), 10);
    var z = parseInt(ary[1].trim(), 10);
    var sum1 = y * z;
    var sum2 = (2 * y) + (2 * z);
    
    console.log(sum1 + ' ' + sum2)
}