var stdin = require('fs').readFileSync('/dev/stdin', 'utf8');

var input = stdin.toString().trim().split('\n');
var cols = input[0].split(' ');
var a = parseInt(cols[0] , 10);
var b = parseInt(cols[1] , 10);
var area = a * b;
var around = (a + b) * 2;
console.log(area , around);