const input = require('fs').readFileSync('/dev/stdin', 'utf8');
let height =  Number(input.split(' ')[0]);
let width = Number(input.split(' ')[1]);
let area = height * width;
let around = height * 2 + width * 2;
console.log(area + " " + around);

