
const gInput = require("fs").readFileSync("/dev/stdin", "utf8")
main(gInput.split(' ').map( s => parseInt(s)))

function main(input){
    var a = input[0]
    var b = input[1]
    var area = a * b
    var length = 2*a+2*b
    console.log(area + ' ' + length)
}
