(function(stdin) {
     var lines = stdin.toString().split('\n');
     var param = lines[0].split(' ').map(Number);
     var a = param[0];
     var b = param[1];
 
    console.log(a * b,(a * 2) + (b * 2));                     
 
}(require('fs').readFileSync('/dev/stdin','utf8')));
 