import java.math.BigDecimal;
import java.util.Scanner;

public class Main {


	public static void main(String[] args) {
		(new Main()).execute();
	}
	public void execute() { ;
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		BigDecimal W = new BigDecimal(sc.next()) ;
		BigDecimal H = new BigDecimal(sc.next()) ;
		BigDecimal x = new BigDecimal(sc.next()) ;
		BigDecimal y = new BigDecimal(sc.next()) ;

		BigDecimal s = W.multiply(H).divide(new BigDecimal("2"));

		System.out.print(s + " ");
		BigDecimal wd = W.divide(new BigDecimal("2")) ;
		BigDecimal hd = H.divide(new BigDecimal("2")) ;
		if(	x.equals(wd) &&y.equals(hd) ){
			System.out.println(1);
		}else {
			System.out.println(0);
		}
	}
} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util public class Main {


	public static void main(String[] args) {
		(new Main()).execute();
	}
	public void execute() { ;
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		BigDecimal W = new BigDecimal(sc.next()) ;
		BigDecimal H = new BigDecimal(sc.next()) ;
		BigDecimal x = new BigDecimal(sc.next()) ;
		BigDecimal y = new BigDecimal(sc.next()) ;

		BigDecimal s = W.multiply(H).divide(new BigDecimal("2"));

		System.out.print(s + " ");
		BigDecimal wd = W.divide(new BigDecimal("2")) ;
		BigDecimal hd = H.divide(new BigDecimal("2")) ;
		if(	x.equals(wd) &&y.equals(hd) ){
			System.out.println(1);
		}else {
			System.out.println(0);
		}
	}
} Main public static void main(String[] args) {
		(new Main()).execute();
	} main {
		(new Main()).execute();
	} (new Main()).execute() (new Main()).execute (new Main()) String[] args args public void execute() { ;
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		BigDecimal W = new BigDecimal(sc.next()) ;
		BigDecimal H = new BigDecimal(sc.next()) ;
		BigDecimal x = new BigDecimal(sc.next()) ;
		BigDecimal y = new BigDecimal(sc.next()) ;

		BigDecimal s = W.multiply(H).divide(new BigDecimal("2"));

		System.out.print(s + " ");
		BigDecimal wd = W.divide(new BigDecimal("2")) ;
		BigDecimal hd = H.divide(new BigDecimal("2")) ;
		if(	x.equals(wd) &&y.equals(hd) ){
			System.out.println(1);
		}else {
			System.out.println(0);
		}
	} execute { ;
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		BigDecimal W = new BigDecimal(sc.next()) ;
		BigDecimal H = new BigDecimal(sc.next()) ;
		BigDecimal x = new BigDecimal(sc.next()) ;
		BigDecimal y = new BigDecimal(sc.next()) ;

		BigDecimal s = W.multiply(H).divide(new BigDecimal("2"));

		System.out.print(s + " ");
		BigDecimal wd = W.divide(new BigDecimal("2")) ;
		BigDecimal hd = H.divide(new BigDecimal("2")) ;
		if(	x.equals(wd) &&y.equals(hd) ){
			System.out.println(1);
		}else {
			System.out.println(0);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) BigDecimal W = new BigDecimal(sc.next()) ; W new BigDecimal(sc.next()) BigDecimal H = new BigDecimal(sc.next()) ; H new BigDecimal(sc.next()) BigDecimal x = new BigDecimal(sc.next()) ; x new BigDecimal(sc.next()) BigDecimal y = new BigDecimal(sc.next()) ; y new BigDecimal(sc.next()) BigDecimal s = W.multiply(H).divide(new BigDecimal("2")); s W.multiply(H).divide(new BigDecimal("2")) W.multiply(H).divide W.multiply(H) W.multiply W H new BigDecimal("2") System.out.print(s + " ") System.out.print System.out System System.out s + " " s " " BigDecimal wd = W.divide(new BigDecimal("2")) ; wd W.divide(new BigDecimal("2")) W.divide W new BigDecimal("2") BigDecimal hd = H.divide(new BigDecimal("2")) ; hd H.divide(new BigDecimal("2")) H.divide H new BigDecimal("2") if(	x.equals(wd) &&y.equals(hd) ){
			System.out.println(1);
		}else {
			System.out.println(0);
		} x.equals(wd) &&y.equals(hd) x.equals(wd) x.equals x wd y.equals(hd) y.equals y hd {
			System.out.println(1);
		} System.out.println(1) System.out.println System.out System System.out 1 {
			System.out.println(0);
		} System.out.println(0) System.out.println System.out System System.out 0 public class Main {


	public static void main(String[] args) {
		(new Main()).execute();
	}
	public void execute() { ;
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		BigDecimal W = new BigDecimal(sc.next()) ;
		BigDecimal H = new BigDecimal(sc.next()) ;
		BigDecimal x = new BigDecimal(sc.next()) ;
		BigDecimal y = new BigDecimal(sc.next()) ;

		BigDecimal s = W.multiply(H).divide(new BigDecimal("2"));

		System.out.print(s + " ");
		BigDecimal wd = W.divide(new BigDecimal("2")) ;
		BigDecimal hd = H.divide(new BigDecimal("2")) ;
		if(	x.equals(wd) &&y.equals(hd) ){
			System.out.println(1);
		}else {
			System.out.println(0);
		}
	}
} public class Main {


	public static void main(String[] args) {
		(new Main()).execute();
	}
	public void execute() { ;
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		BigDecimal W = new BigDecimal(sc.next()) ;
		BigDecimal H = new BigDecimal(sc.next()) ;
		BigDecimal x = new BigDecimal(sc.next()) ;
		BigDecimal y = new BigDecimal(sc.next()) ;

		BigDecimal s = W.multiply(H).divide(new BigDecimal("2"));

		System.out.print(s + " ");
		BigDecimal wd = W.divide(new BigDecimal("2")) ;
		BigDecimal hd = H.divide(new BigDecimal("2")) ;
		if(	x.equals(wd) &&y.equals(hd) ){
			System.out.println(1);
		}else {
			System.out.println(0);
		}
	}
} Main
import java.math.BigDecimal;
import java.util.Scanner;

public class Main {


	public static void main(String[] args) {
		(new Main()).execute();
	}
	public void execute() { ;
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		BigDecimal W = new BigDecimal(sc.next()) ;
		BigDecimal H = new BigDecimal(sc.next()) ;
		BigDecimal x = new BigDecimal(sc.next()) ;
		BigDecimal y = new BigDecimal(sc.next()) ;

		BigDecimal s = W.multiply(H).divide(new BigDecimal("2"));

		System.out.print(s + " ");
		BigDecimal wd = W.divide(new BigDecimal("2")) ;
		BigDecimal hd = H.divide(new BigDecimal("2")) ;
		if(	x.equals(wd) &&y.equals(hd) ){
			System.out.println(1);
		}else {
			System.out.println(0);
		}
	}
}
