function main(input) {
  // 入力値（文字列）をスペースで区切る
  const inputList = input.split(/\s/);
  const numOfW = formatNum(inputList[0]);
  const numOfH = formatNum(inputList[1]);
  const numOfX = formatNum(inputList[2]);
  const numOfY = formatNum(inputList[3]);
  
  // 面積計算結果リスト
  const resultListX = [];
  const resultListY = [];
  resultListX.push(numOfX * numOfH);
  resultListX.push((numOfW - numOfX) * numOfH);
  resultListY.push(numOfY * numOfW);
  resultListY.push((numOfH - numOfY) * numOfW);

  var result = Math.min(...resultListX);
  var count = 0;
  if (Math.min(...resultListX) < Math.min(...resultListY)) {
    result = Math.min(...resultListY);
  } else if (Math.min(...resultListX) === Math.min(...resultListY)) {
    count = 1
  }
  console.log(`${result.toFixed(6)} ${count}`);
};

// 文字列を数値に変換
function formatNum(str) {
  return Number(str);
};

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