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 Dice{
	constructor(T,B,U,D,L,R){
		//??±?????????????????????????????????
		this.list = [T,U,L,R,D,B];
		//????????°???
		this.nowup = T;
	}
	next(nxt){
		const now = this.nowup;
		const list = this.list;
		let ret = 0;
		//????????????????????????????????£??????
		if(now == nxt){
			ret = 0;
		}else if(list.indexOf(now) + list.indexOf(nxt) == 5){
			//idx0??????5,2??????3??¨?????£??????????????????????????£??????2
			ret = 2;
		}else{
			//???????????????1
			ret = 1;
		}
		this.nowup = nxt;
		return ret;
	}
}