var stdin = require('fs').readFileSync('/dev/stdin', 'utf8');
var input = stdin.toString().trim().split('\n');

var input = stdin.toString().trim().split('\n');
var cols = input[0].split(' ');
var a = parseInt(cols[0],10);
var b = parseInt(cols[1],10);


console.log(a * b, (a + b) * 2);