const input = require('fs').readFileSync('/dev/stdin', 'utf8');
const e = input.split(" ");
const a = parseInt(e[0]) * parseInt(e[1]);
const b = (parseInt(e[0]) + parseInt(e[1]))*2;
console.log(`${a} ${b}`);
