'use strict'
const Main = (arg) => {
  let input = arg.trim().split('\n');
  let W = input[0].split(' ').map(Number)[0];
  let H = input[0].split(' ').map(Number)[1];
  let x = input[0].split(' ').map(Number)[2];
  let y = input[0].split(' ').map(Number)[3];
  // console.log({ W, H, x, y });
  let S = 0;
  let Judg = 0;
  let ysS = Math.min(x * H, (W - x) * H);
  let xsS = Math.min(W * y, W * (H - y));
  if (ysS == xsS) {
    S = xsS;
    Judg = 1;
  } else if (ysS > xsS) {
    S = ysS;
  } else if (ysS < xsS) {
    S = xsS;
  }

  console.log(S,Judg);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
