import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long w = sc.nextLong();
        long h = sc.nextLong();
        double x = sc.nextLong();
        double y = sc.nextLong();
        double midx = w / 2.0;
        double midy = h / 2.0;
        System.out.println(w * h / 2.0);
        if(midx == x && midy == y) {
            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 sc = new Scanner(System.in);
        long w = sc.nextLong();
        long h = sc.nextLong();
        double x = sc.nextLong();
        double y = sc.nextLong();
        double midx = w / 2.0;
        double midy = h / 2.0;
        System.out.println(w * h / 2.0);
        if(midx == x && midy == y) {
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long w = sc.nextLong();
        long h = sc.nextLong();
        double x = sc.nextLong();
        double y = sc.nextLong();
        double midx = w / 2.0;
        double midy = h / 2.0;
        System.out.println(w * h / 2.0);
        if(midx == x && midy == y) {
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        long w = sc.nextLong();
        long h = sc.nextLong();
        double x = sc.nextLong();
        double y = sc.nextLong();
        double midx = w / 2.0;
        double midy = h / 2.0;
        System.out.println(w * h / 2.0);
        if(midx == x && midy == y) {
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long w = sc.nextLong(); w sc.nextLong() sc.nextLong sc long h = sc.nextLong(); h sc.nextLong() sc.nextLong sc double x = sc.nextLong(); x sc.nextLong() sc.nextLong sc double y = sc.nextLong(); y sc.nextLong() sc.nextLong sc double midx = w / 2.0; midx w / 2.0 w 2.0 double midy = h / 2.0; midy h / 2.0 h 2.0 System.out.println(w * h / 2.0) System.out.println System.out System System.out w * h / 2.0 w * h w h 2.0 if(midx == x && midy == y) {
            System.out.println(1);
        } else {
            System.out.println(0);
        } midx == x && midy == y midx == x midx x midy == y midy y {
            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 sc = new Scanner(System.in);
        long w = sc.nextLong();
        long h = sc.nextLong();
        double x = sc.nextLong();
        double y = sc.nextLong();
        double midx = w / 2.0;
        double midy = h / 2.0;
        System.out.println(w * h / 2.0);
        if(midx == x && midy == y) {
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long w = sc.nextLong();
        long h = sc.nextLong();
        double x = sc.nextLong();
        double y = sc.nextLong();
        double midx = w / 2.0;
        double midy = h / 2.0;
        System.out.println(w * h / 2.0);
        if(midx == x && midy == y) {
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long w = sc.nextLong();
        long h = sc.nextLong();
        double x = sc.nextLong();
        double y = sc.nextLong();
        double midx = w / 2.0;
        double midy = h / 2.0;
        System.out.println(w * h / 2.0);
        if(midx == x && midy == y) {
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    }
}