function main(input){
    var list = input.split(' ');
    var a = parseInt(list[0]), b = parseInt(list[1]);
    console.log(a * b, (a + b)*2);
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));
