import java.util.Scanner;

public class Main {
	public static void main(String args[]) {

	Scanner std = new Scanner(System.in);


	//List<Integer> list = new ArrayList<>();
	int W = std.nextInt();
	int H = std.nextInt();
	int x = std.nextInt();
	int y = std.nextInt();

	//四角形の中心の場合 1
	double full = (double)W*(double)H;
    double half = (double)full/2;
	System.out.println(half);

	double halfx = (double)W/2;
	double halfy = (double)H/2;




	if((double)x == halfx && (double)y == halfy) {
		System.out.println('1');
	}
	else {
	System.out.println('0');
	}

	}


	}

 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) {

	Scanner std = new Scanner(System.in);


	//List<Integer> list = new ArrayList<>();
	int W = std.nextInt();
	int H = std.nextInt();
	int x = std.nextInt();
	int y = std.nextInt();

	//四角形の中心の場合 1
	double full = (double)W*(double)H;
    double half = (double)full/2;
	System.out.println(half);

	double halfx = (double)W/2;
	double halfy = (double)H/2;




	if((double)x == halfx && (double)y == halfy) {
		System.out.println('1');
	}
	else {
	System.out.println('0');
	}

	}


	} Main public static void main(String args[]) {

	Scanner std = new Scanner(System.in);


	//List<Integer> list = new ArrayList<>();
	int W = std.nextInt();
	int H = std.nextInt();
	int x = std.nextInt();
	int y = std.nextInt();

	//四角形の中心の場合 1
	double full = (double)W*(double)H;
    double half = (double)full/2;
	System.out.println(half);

	double halfx = (double)W/2;
	double halfy = (double)H/2;




	if((double)x == halfx && (double)y == halfy) {
		System.out.println('1');
	}
	else {
	System.out.println('0');
	}

	} main {

	Scanner std = new Scanner(System.in);


	//List<Integer> list = new ArrayList<>();
	int W = std.nextInt();
	int H = std.nextInt();
	int x = std.nextInt();
	int y = std.nextInt();

	//四角形の中心の場合 1
	double full = (double)W*(double)H;
    double half = (double)full/2;
	System.out.println(half);

	double halfx = (double)W/2;
	double halfy = (double)H/2;




	if((double)x == halfx && (double)y == halfy) {
		System.out.println('1');
	}
	else {
	System.out.println('0');
	}

	} Scanner std = new Scanner(System.in); std new Scanner(System.in) int W = std.nextInt(); W std.nextInt() std.nextInt std int H = std.nextInt(); H std.nextInt() std.nextInt std int x = std.nextInt(); x std.nextInt() std.nextInt std int y = std.nextInt(); y std.nextInt() std.nextInt std double full = (double)W*(double)H; full (double)W*(double)H (double)W (double)H double half = (double)full/2; half (double)full/2 (double)full 2 System.out.println(half) System.out.println System.out System System.out half double halfx = (double)W/2; halfx (double)W/2 (double)W 2 double halfy = (double)H/2; halfy (double)H/2 (double)H 2 if((double)x == halfx && (double)y == halfy) {
		System.out.println('1');
	}
	else {
	System.out.println('0');
	} (double)x == halfx && (double)y == halfy (double)x == halfx (double)x halfx (double)y == halfy (double)y halfy {
		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' String args[] args public class Main {
	public static void main(String args[]) {

	Scanner std = new Scanner(System.in);


	//List<Integer> list = new ArrayList<>();
	int W = std.nextInt();
	int H = std.nextInt();
	int x = std.nextInt();
	int y = std.nextInt();

	//四角形の中心の場合 1
	double full = (double)W*(double)H;
    double half = (double)full/2;
	System.out.println(half);

	double halfx = (double)W/2;
	double halfy = (double)H/2;




	if((double)x == halfx && (double)y == halfy) {
		System.out.println('1');
	}
	else {
	System.out.println('0');
	}

	}


	} public class Main {
	public static void main(String args[]) {

	Scanner std = new Scanner(System.in);


	//List<Integer> list = new ArrayList<>();
	int W = std.nextInt();
	int H = std.nextInt();
	int x = std.nextInt();
	int y = std.nextInt();

	//四角形の中心の場合 1
	double full = (double)W*(double)H;
    double half = (double)full/2;
	System.out.println(half);

	double halfx = (double)W/2;
	double halfy = (double)H/2;




	if((double)x == halfx && (double)y == halfy) {
		System.out.println('1');
	}
	else {
	System.out.println('0');
	}

	}


	} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]) {

	Scanner std = new Scanner(System.in);


	//List<Integer> list = new ArrayList<>();
	int W = std.nextInt();
	int H = std.nextInt();
	int x = std.nextInt();
	int y = std.nextInt();

	//四角形の中心の場合 1
	double full = (double)W*(double)H;
    double half = (double)full/2;
	System.out.println(half);

	double halfx = (double)W/2;
	double halfy = (double)H/2;




	if((double)x == halfx && (double)y == halfy) {
		System.out.println('1');
	}
	else {
	System.out.println('0');
	}

	}


	}


