import java.util.Scanner;

public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			double W = scan.nextDouble();
			double H = scan.nextDouble();
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			
			
			if(x==W/2.0&&y==H/2.0) {
				System.out.println(H*W/2);
				System.out.println(1);
			}else{
				System.out.println(H*W/2);
				System.out.println(0);
			}
				
			/*
				double cx =W/2.0; 
				double cy =H/2.0; 
				
				if(x==cx||y==cy||y==(H/W)*x||y==(-H/W)*x+H) {
					
				}else {
					double a = (y-cy)/(x-cx);
					
					
					
				}
				
				
				
				double jyou = cy-a*cx;
				double kate = a*(double)W+cy-a*cx;
				System.out.println((jyou+kate)*(double)W/2.0);
				System.out.println(0);*/
				
			
			
			
			
			
			
			
		}
		
		
	}
		

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			double W = scan.nextDouble();
			double H = scan.nextDouble();
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			
			
			if(x==W/2.0&&y==H/2.0) {
				System.out.println(H*W/2);
				System.out.println(1);
			}else{
				System.out.println(H*W/2);
				System.out.println(0);
			}
				
			/*
				double cx =W/2.0; 
				double cy =H/2.0; 
				
				if(x==cx||y==cy||y==(H/W)*x||y==(-H/W)*x+H) {
					
				}else {
					double a = (y-cy)/(x-cx);
					
					
					
				}
				
				
				
				double jyou = cy-a*cx;
				double kate = a*(double)W+cy-a*cx;
				System.out.println((jyou+kate)*(double)W/2.0);
				System.out.println(0);*/
				
			
			
			
			
			
			
			
		}
		
		
	}
		

} Main public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			double W = scan.nextDouble();
			double H = scan.nextDouble();
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			
			
			if(x==W/2.0&&y==H/2.0) {
				System.out.println(H*W/2);
				System.out.println(1);
			}else{
				System.out.println(H*W/2);
				System.out.println(0);
			}
				
			/*
				double cx =W/2.0; 
				double cy =H/2.0; 
				
				if(x==cx||y==cy||y==(H/W)*x||y==(-H/W)*x+H) {
					
				}else {
					double a = (y-cy)/(x-cx);
					
					
					
				}
				
				
				
				double jyou = cy-a*cx;
				double kate = a*(double)W+cy-a*cx;
				System.out.println((jyou+kate)*(double)W/2.0);
				System.out.println(0);*/
				
			
			
			
			
			
			
			
		}
		
		
	} main {
		try(Scanner scan = new Scanner(System.in)){
			
			double W = scan.nextDouble();
			double H = scan.nextDouble();
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			
			
			if(x==W/2.0&&y==H/2.0) {
				System.out.println(H*W/2);
				System.out.println(1);
			}else{
				System.out.println(H*W/2);
				System.out.println(0);
			}
				
			/*
				double cx =W/2.0; 
				double cy =H/2.0; 
				
				if(x==cx||y==cy||y==(H/W)*x||y==(-H/W)*x+H) {
					
				}else {
					double a = (y-cy)/(x-cx);
					
					
					
				}
				
				
				
				double jyou = cy-a*cx;
				double kate = a*(double)W+cy-a*cx;
				System.out.println((jyou+kate)*(double)W/2.0);
				System.out.println(0);*/
				
			
			
			
			
			
			
			
		}
		
		
	} try(Scanner scan = new Scanner(System.in)){
			
			double W = scan.nextDouble();
			double H = scan.nextDouble();
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			
			
			if(x==W/2.0&&y==H/2.0) {
				System.out.println(H*W/2);
				System.out.println(1);
			}else{
				System.out.println(H*W/2);
				System.out.println(0);
			}
				
			/*
				double cx =W/2.0; 
				double cy =H/2.0; 
				
				if(x==cx||y==cy||y==(H/W)*x||y==(-H/W)*x+H) {
					
				}else {
					double a = (y-cy)/(x-cx);
					
					
					
				}
				
				
				
				double jyou = cy-a*cx;
				double kate = a*(double)W+cy-a*cx;
				System.out.println((jyou+kate)*(double)W/2.0);
				System.out.println(0);*/
				
			
			
			
			
			
			
			
		} {
			
			double W = scan.nextDouble();
			double H = scan.nextDouble();
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			
			
			if(x==W/2.0&&y==H/2.0) {
				System.out.println(H*W/2);
				System.out.println(1);
			}else{
				System.out.println(H*W/2);
				System.out.println(0);
			}
				
			/*
				double cx =W/2.0; 
				double cy =H/2.0; 
				
				if(x==cx||y==cy||y==(H/W)*x||y==(-H/W)*x+H) {
					
				}else {
					double a = (y-cy)/(x-cx);
					
					
					
				}
				
				
				
				double jyou = cy-a*cx;
				double kate = a*(double)W+cy-a*cx;
				System.out.println((jyou+kate)*(double)W/2.0);
				System.out.println(0);*/
				
			
			
			
			
			
			
			
		} Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) new Scanner(System.in) double W = scan.nextDouble(); W scan.nextDouble() scan.nextDouble scan double H = scan.nextDouble(); H scan.nextDouble() scan.nextDouble scan double x = scan.nextDouble(); x scan.nextDouble() scan.nextDouble scan double y = scan.nextDouble(); y scan.nextDouble() scan.nextDouble scan if(x==W/2.0&&y==H/2.0) {
				System.out.println(H*W/2);
				System.out.println(1);
			}else{
				System.out.println(H*W/2);
				System.out.println(0);
			} x==W/2.0&&y==H/2.0 x==W/2.0 x W/2.0 W 2.0 y==H/2.0 y H/2.0 H 2.0 {
				System.out.println(H*W/2);
				System.out.println(1);
			} System.out.println(H*W/2) System.out.println System.out System System.out H*W/2 H*W H W 2 System.out.println(1) System.out.println System.out System System.out 1 {
				System.out.println(H*W/2);
				System.out.println(0);
			} System.out.println(H*W/2) System.out.println System.out System System.out H*W/2 H*W H W 2 System.out.println(0) System.out.println System.out System System.out 0 String[]args args public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			double W = scan.nextDouble();
			double H = scan.nextDouble();
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			
			
			if(x==W/2.0&&y==H/2.0) {
				System.out.println(H*W/2);
				System.out.println(1);
			}else{
				System.out.println(H*W/2);
				System.out.println(0);
			}
				
			/*
				double cx =W/2.0; 
				double cy =H/2.0; 
				
				if(x==cx||y==cy||y==(H/W)*x||y==(-H/W)*x+H) {
					
				}else {
					double a = (y-cy)/(x-cx);
					
					
					
				}
				
				
				
				double jyou = cy-a*cx;
				double kate = a*(double)W+cy-a*cx;
				System.out.println((jyou+kate)*(double)W/2.0);
				System.out.println(0);*/
				
			
			
			
			
			
			
			
		}
		
		
	}
		

} public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			double W = scan.nextDouble();
			double H = scan.nextDouble();
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			
			
			if(x==W/2.0&&y==H/2.0) {
				System.out.println(H*W/2);
				System.out.println(1);
			}else{
				System.out.println(H*W/2);
				System.out.println(0);
			}
				
			/*
				double cx =W/2.0; 
				double cy =H/2.0; 
				
				if(x==cx||y==cy||y==(H/W)*x||y==(-H/W)*x+H) {
					
				}else {
					double a = (y-cy)/(x-cx);
					
					
					
				}
				
				
				
				double jyou = cy-a*cx;
				double kate = a*(double)W+cy-a*cx;
				System.out.println((jyou+kate)*(double)W/2.0);
				System.out.println(0);*/
				
			
			
			
			
			
			
			
		}
		
		
	}
		

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			double W = scan.nextDouble();
			double H = scan.nextDouble();
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			
			
			if(x==W/2.0&&y==H/2.0) {
				System.out.println(H*W/2);
				System.out.println(1);
			}else{
				System.out.println(H*W/2);
				System.out.println(0);
			}
				
			/*
				double cx =W/2.0; 
				double cy =H/2.0; 
				
				if(x==cx||y==cy||y==(H/W)*x||y==(-H/W)*x+H) {
					
				}else {
					double a = (y-cy)/(x-cx);
					
					
					
				}
				
				
				
				double jyou = cy-a*cx;
				double kate = a*(double)W+cy-a*cx;
				System.out.println((jyou+kate)*(double)W/2.0);
				System.out.println(0);*/
				
			
			
			
			
			
			
			
		}
		
		
	}
		

}
