process.stdin.resume();
process.stdin.setEncoding('utf8');

process.stdin.on('data', function(chunk) {
    var inputs = chunk.trim().split(" ");
    var result1 = (parseInt(inputs[0]) + parseInt(inputs[1])) * 2;
    var result2 = parseInt(inputs[0]) * parseInt(inputs[1]);
    
    console.log(result2, result1);
});