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