process.stdin.resume();
process.stdin.setEncoding("utf8");

const reader = require("readline").createInterface({
  input: process.stdin,
  output: process.stdout,
});

const lines = [];

reader.on("line", (line) => {
  lines.push(line);
});

reader.on("close", () => {
  const [w, h] = parseLine(lines[0]);
  console.log("%d %d", w * h, 2 * w + 2 * h);
});

function parseLine(s) {
  return s.split(" ").map((s) => Number(s));
}

