"use strict";
function body(a, b){
    return [a*b, (a+b)*2];
}

(function (){
    var s = require("fs").readFileSync("/dev/stdin", "utf8");
    var ary = s.split(' ').map(Number);

    var ans=body(ary[0], ary[1]);
    
    console.log("%d %d",ans[0], ans[1]);

})();
