function Main(input) {

	input = input.split(" ");
	
	var W = parseInt(input[0]);
	var H = parseInt(input[1]);
	var x = parseInt(input[2]);
	var y = parseInt(input[3]);
	
	function vertical(hx,hW,hH){
        var area = hW*hH;
        var left = hx*hH;
        var right = area - left;
        if(right>left){
            return left;
        }else if(left>right){
            return right;
        }else{
            return left;
        }
    }

    function horizontal(hy,hW,hH){
        var area = hW*hH;
        var down = hW*hy;
        var up = area - down;
        if(up>down){
            return down;
        }else if(down>up){
            return up;
        }else{
            return down;
        }
    }
    
    var ver = vertical(x,W,H);
    var hor = horizontal(y,W,H);
    
    if(ver===hor){
        console.log(hor+" 1");
    }else if(ver>hor){
        console.log(ver+" 0");
    }else{
        console.log(hor+" 0");
    }
}

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