import java.util.Arrays;
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		long W  = keyboard.nextInt();
		long H  = keyboard.nextInt();
		long x  = keyboard.nextInt();
		long y  = keyboard.nextInt();
		
		double men = (W*H)/2.0;
		double a = x*H;
		double b = (W*H)-a;
		double c = y*W;
		double d = (W*H)-c;
		
		double xx = Math.min(a, b);
		double yy = Math.min(c, d);
		
		int hou = 0;
		
		if(xx == men) {
			hou ++;
		}
		if(yy == men) {
			hou ++;
		}
		
		if(hou <= 1) {
			hou = 0;
		}else {
			hou = 1;
		}

		System.out.print(men + " " + hou);
		keyboard.close();	
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		long W  = keyboard.nextInt();
		long H  = keyboard.nextInt();
		long x  = keyboard.nextInt();
		long y  = keyboard.nextInt();
		
		double men = (W*H)/2.0;
		double a = x*H;
		double b = (W*H)-a;
		double c = y*W;
		double d = (W*H)-c;
		
		double xx = Math.min(a, b);
		double yy = Math.min(c, d);
		
		int hou = 0;
		
		if(xx == men) {
			hou ++;
		}
		if(yy == men) {
			hou ++;
		}
		
		if(hou <= 1) {
			hou = 0;
		}else {
			hou = 1;
		}

		System.out.print(men + " " + hou);
		keyboard.close();	
	}
} Main public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		long W  = keyboard.nextInt();
		long H  = keyboard.nextInt();
		long x  = keyboard.nextInt();
		long y  = keyboard.nextInt();
		
		double men = (W*H)/2.0;
		double a = x*H;
		double b = (W*H)-a;
		double c = y*W;
		double d = (W*H)-c;
		
		double xx = Math.min(a, b);
		double yy = Math.min(c, d);
		
		int hou = 0;
		
		if(xx == men) {
			hou ++;
		}
		if(yy == men) {
			hou ++;
		}
		
		if(hou <= 1) {
			hou = 0;
		}else {
			hou = 1;
		}

		System.out.print(men + " " + hou);
		keyboard.close();	
	} main {
		
		Scanner keyboard = new Scanner(System.in); 
		
		long W  = keyboard.nextInt();
		long H  = keyboard.nextInt();
		long x  = keyboard.nextInt();
		long y  = keyboard.nextInt();
		
		double men = (W*H)/2.0;
		double a = x*H;
		double b = (W*H)-a;
		double c = y*W;
		double d = (W*H)-c;
		
		double xx = Math.min(a, b);
		double yy = Math.min(c, d);
		
		int hou = 0;
		
		if(xx == men) {
			hou ++;
		}
		if(yy == men) {
			hou ++;
		}
		
		if(hou <= 1) {
			hou = 0;
		}else {
			hou = 1;
		}

		System.out.print(men + " " + hou);
		keyboard.close();	
	} Scanner keyboard = new Scanner(System.in); keyboard new Scanner(System.in) long W  = keyboard.nextInt(); W keyboard.nextInt() keyboard.nextInt keyboard long H  = keyboard.nextInt(); H keyboard.nextInt() keyboard.nextInt keyboard long x  = keyboard.nextInt(); x keyboard.nextInt() keyboard.nextInt keyboard long y  = keyboard.nextInt(); y keyboard.nextInt() keyboard.nextInt keyboard double men = (W*H)/2.0; men (W*H)/2.0 (W*H) W H 2.0 double a = x*H; a x*H x H double b = (W*H)-a; b (W*H)-a (W*H) W H a double c = y*W; c y*W y W double d = (W*H)-c; d (W*H)-c (W*H) W H c double xx = Math.min(a, b); xx Math.min(a, b) Math.min Math a b double yy = Math.min(c, d); yy Math.min(c, d) Math.min Math c d int hou = 0; hou 0 if(xx == men) {
			hou ++;
		} xx == men xx men {
			hou ++;
		} hou ++ hou if(yy == men) {
			hou ++;
		} yy == men yy men {
			hou ++;
		} hou ++ hou if(hou <= 1) {
			hou = 0;
		}else {
			hou = 1;
		} hou <= 1 hou 1 {
			hou = 0;
		} hou = 0 hou 0 {
			hou = 1;
		} hou = 1 hou 1 System.out.print(men + " " + hou) System.out.print System.out System System.out men + " " + hou men + " " + hou men " " hou keyboard.close() keyboard.close keyboard String[] args args public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		long W  = keyboard.nextInt();
		long H  = keyboard.nextInt();
		long x  = keyboard.nextInt();
		long y  = keyboard.nextInt();
		
		double men = (W*H)/2.0;
		double a = x*H;
		double b = (W*H)-a;
		double c = y*W;
		double d = (W*H)-c;
		
		double xx = Math.min(a, b);
		double yy = Math.min(c, d);
		
		int hou = 0;
		
		if(xx == men) {
			hou ++;
		}
		if(yy == men) {
			hou ++;
		}
		
		if(hou <= 1) {
			hou = 0;
		}else {
			hou = 1;
		}

		System.out.print(men + " " + hou);
		keyboard.close();	
	}
} public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		long W  = keyboard.nextInt();
		long H  = keyboard.nextInt();
		long x  = keyboard.nextInt();
		long y  = keyboard.nextInt();
		
		double men = (W*H)/2.0;
		double a = x*H;
		double b = (W*H)-a;
		double c = y*W;
		double d = (W*H)-c;
		
		double xx = Math.min(a, b);
		double yy = Math.min(c, d);
		
		int hou = 0;
		
		if(xx == men) {
			hou ++;
		}
		if(yy == men) {
			hou ++;
		}
		
		if(hou <= 1) {
			hou = 0;
		}else {
			hou = 1;
		}

		System.out.print(men + " " + hou);
		keyboard.close();	
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		long W  = keyboard.nextInt();
		long H  = keyboard.nextInt();
		long x  = keyboard.nextInt();
		long y  = keyboard.nextInt();
		
		double men = (W*H)/2.0;
		double a = x*H;
		double b = (W*H)-a;
		double c = y*W;
		double d = (W*H)-c;
		
		double xx = Math.min(a, b);
		double yy = Math.min(c, d);
		
		int hou = 0;
		
		if(xx == men) {
			hou ++;
		}
		if(yy == men) {
			hou ++;
		}
		
		if(hou <= 1) {
			hou = 0;
		}else {
			hou = 1;
		}

		System.out.print(men + " " + hou);
		keyboard.close();	
	}
}
