process.stdin.resume();
process.stdin.setEncoding('utf8');
 
Object.prototype.$ = function(f){
    return f(this);
};
 
const putStrLn = x => console.log(x.toString());
 
const solve = xs => (xs[0]*xs[1]) + ' ' + (xs[0]*2+xs[1]*2);

process.stdin.on('data', function (input) {
    input.trim().split(' ').map(Number).$(solve).$(putStrLn);
});