function main(input) {
	process.stdout.write(input[0]*input[1] + " " + 2*(input[0]+input[1]));
}

var input = '';

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
  input += parseInt(chunk);
});
process.stdin.on('end', function() {
  input = input.split(' ');
  main(input);
});