function Main(input) {
  const args = input.split(" ").map((x) => parseInt(x, 10));
  let a = args[0];
  let b = args[1];
  console.log(a * b, (a + b) * 2);
}

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

