const main = (inputs) => {
  var W = inputs[0].split(" ")[0]-0;
  var H = inputs[0].split(" ")[1]-0;
  var x = inputs[0].split(" ")[2]-0;
  var y = inputs[0].split(" ")[3]-0;

  var tate = Math.min((x*H), ((W-x)*H));
  var yoko = Math.min((y*W), ((H-y)*W));
  if(tate == yoko){
    if(yoko==0){
      console.log(H*W/2 + " " + "0");
    }else{
      console.log(yoko + " " + "1");
    }
  }else{
    ans = Math.max(yoko, tate);
    if(yoko == 0 || tate == 0){
      console.log(ans + " " + "0");
    }else{
      console.log(ans + " " + "1");
    }
  }
}

main(require('fs').readFileSync('/dev/stdin', 'UTF-8').trim().split("\n"));
