function Main(input){
    input=input.split("\n");
     
    var vals = input[0].split(' ');
     
    var val1 = parseInt(vals[0]);
    var val2 = parseInt(vals[1]);
     
    var ans1 = val1 * val2;
    var ans2 = 2 * (val1 + val2);
     
    console.log("%d %d", ans1, ans2);
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
