process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data',function(line){
	before(line);
});

var log = console.log;
function before(line){
	var lines = line.split("\n");
	lines = lines.filter(function(e){
		return (e !== "");
	});
	main(lines);
}

//-----------
function main(lines){
	const tpl = lines[0].split(" ");
	const a = Number(tpl[0]);
	const b = Number(tpl[1]);
	log(a*b + " " + 2*(a+b));
}

class Test{
  constructor(){
    this.a = 3;
  }
}