process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
    var args = chunk.split(' ');
    var length = parseInt(args[0]);
    var width = parseInt(args[1]);
    var area = length * width;
    var perimeter = 2 * (length + width);
    console.log(area, perimeter);
});