process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on("data",function(chunk){
    var line = chunk.trim().split(" ");
    var men;
    var syu;
    men = (line[0]*1) * (line[1]*1);
    syu = (line[0]*2) + (line[1]*2);
    console.log(men.toString()+" "+syu.toString());
});