var stdin = '/dev/stdin';
if (require('os').type().toString().match('Windows')) stdin = 0;
var str = require('fs').readFileSync(stdin, 'ascii').toString();
var [a, b] = str.trim().split(/ /).map(Number);
console.log(a * b, 2 * (a + b));