import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int w = scanner.nextInt();
        int h = scanner.nextInt();
        int x = scanner.nextInt();
        int y = scanner.nextInt();

        System.out.println((double) w * h / 2);
        if((x ==  (double) w / 2) && (y == (double) h / 2)){
            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 scanner = new Scanner(System.in);
        int w = scanner.nextInt();
        int h = scanner.nextInt();
        int x = scanner.nextInt();
        int y = scanner.nextInt();

        System.out.println((double) w * h / 2);
        if((x ==  (double) w / 2) && (y == (double) h / 2)){
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int w = scanner.nextInt();
        int h = scanner.nextInt();
        int x = scanner.nextInt();
        int y = scanner.nextInt();

        System.out.println((double) w * h / 2);
        if((x ==  (double) w / 2) && (y == (double) h / 2)){
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int w = scanner.nextInt();
        int h = scanner.nextInt();
        int x = scanner.nextInt();
        int y = scanner.nextInt();

        System.out.println((double) w * h / 2);
        if((x ==  (double) w / 2) && (y == (double) h / 2)){
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int w = scanner.nextInt(); w scanner.nextInt() scanner.nextInt scanner int h = scanner.nextInt(); h scanner.nextInt() scanner.nextInt scanner int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner int y = scanner.nextInt(); y scanner.nextInt() scanner.nextInt scanner System.out.println((double) w * h / 2) System.out.println System.out System System.out (double) w * h / 2 (double) w * h (double) w h 2 if((x ==  (double) w / 2) && (y == (double) h / 2)){
            System.out.println(1);
        } else {
            System.out.println(0);
        } (x ==  (double) w / 2) && (y == (double) h / 2) (x ==  (double) w / 2) x (double) w / 2 (double) w 2 (y == (double) h / 2) y (double) h / 2 (double) h 2 {
            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 scanner = new Scanner(System.in);
        int w = scanner.nextInt();
        int h = scanner.nextInt();
        int x = scanner.nextInt();
        int y = scanner.nextInt();

        System.out.println((double) w * h / 2);
        if((x ==  (double) w / 2) && (y == (double) h / 2)){
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int w = scanner.nextInt();
        int h = scanner.nextInt();
        int x = scanner.nextInt();
        int y = scanner.nextInt();

        System.out.println((double) w * h / 2);
        if((x ==  (double) w / 2) && (y == (double) h / 2)){
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int w = scanner.nextInt();
        int h = scanner.nextInt();
        int x = scanner.nextInt();
        int y = scanner.nextInt();

        System.out.println((double) w * h / 2);
        if((x ==  (double) w / 2) && (y == (double) h / 2)){
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    }
}
