function Main(input){
	input=input.split(" ");
  const a = parseInt(input[0], 10);
  const b = parseInt(input[1], 10);
 
  let s = a * b;
  let l = 2 * (a + b);

  console.log(s +' '+ l);

}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
