var x = require('fs').readFileSync('/dev/stdin', 'utf8');
var len = x.split(" ");
len = len.map( v => parseInt(v) );
var men = len[0] * len[1];
var l = ( len[0] + len[1] ) * 2;

console.log( men + " " + l );