
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk){
 let x = chunk.split(" ")
 let a = Number(x[0])
 let b = Number(x[1])
 console.log((a * b) + " " + (a + b) * 2)
})