'use strict'

const main = arg => {
 const input = arg.trim().split("\n")[0].split(" ").map(num => parseInt(num));
 const tate = input[0];
 const yoko = input[1];

 console.log("%d %d", tate*yoko, (tate+yoko)*2);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));


