

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

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

        double res = (double)a * b / 2;
        BigDecimal bd = new BigDecimal(res);
        System.out.print(bd.setScale(6, RoundingMode.HALF_UP) + " ");


        if(2*x == a && 2*y == b) {
            System.out.print("1");
        } else {
            System.out.print("0");
        }
    }
} import java.math.BigDecimal; BigDecimal java.math import java.math.RoundingMode; RoundingMode java.math import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x = sc.nextInt();
        int y = sc.nextInt();

        double res = (double)a * b / 2;
        BigDecimal bd = new BigDecimal(res);
        System.out.print(bd.setScale(6, RoundingMode.HALF_UP) + " ");


        if(2*x == a && 2*y == b) {
            System.out.print("1");
        } else {
            System.out.print("0");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x = sc.nextInt();
        int y = sc.nextInt();

        double res = (double)a * b / 2;
        BigDecimal bd = new BigDecimal(res);
        System.out.print(bd.setScale(6, RoundingMode.HALF_UP) + " ");


        if(2*x == a && 2*y == b) {
            System.out.print("1");
        } else {
            System.out.print("0");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x = sc.nextInt();
        int y = sc.nextInt();

        double res = (double)a * b / 2;
        BigDecimal bd = new BigDecimal(res);
        System.out.print(bd.setScale(6, RoundingMode.HALF_UP) + " ");


        if(2*x == a && 2*y == b) {
            System.out.print("1");
        } else {
            System.out.print("0");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc double res = (double)a * b / 2; res (double)a * b / 2 (double)a * b (double)a b 2 BigDecimal bd = new BigDecimal(res); bd new BigDecimal(res) System.out.print(bd.setScale(6, RoundingMode.HALF_UP) + " ") System.out.print System.out System System.out bd.setScale(6, RoundingMode.HALF_UP) + " " bd.setScale(6, RoundingMode.HALF_UP) bd.setScale bd 6 RoundingMode.HALF_UP RoundingMode RoundingMode.HALF_UP " " if(2*x == a && 2*y == b) {
            System.out.print("1");
        } else {
            System.out.print("0");
        } 2*x == a && 2*y == b 2*x == a 2*x 2 x a 2*y == b 2*y 2 y b {
            System.out.print("1");
        } System.out.print("1") System.out.print System.out System System.out "1" {
            System.out.print("0");
        } System.out.print("0") System.out.print System.out System System.out "0" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x = sc.nextInt();
        int y = sc.nextInt();

        double res = (double)a * b / 2;
        BigDecimal bd = new BigDecimal(res);
        System.out.print(bd.setScale(6, RoundingMode.HALF_UP) + " ");


        if(2*x == a && 2*y == b) {
            System.out.print("1");
        } else {
            System.out.print("0");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x = sc.nextInt();
        int y = sc.nextInt();

        double res = (double)a * b / 2;
        BigDecimal bd = new BigDecimal(res);
        System.out.print(bd.setScale(6, RoundingMode.HALF_UP) + " ");


        if(2*x == a && 2*y == b) {
            System.out.print("1");
        } else {
            System.out.print("0");
        }
    }
} Main


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

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

        double res = (double)a * b / 2;
        BigDecimal bd = new BigDecimal(res);
        System.out.print(bd.setScale(6, RoundingMode.HALF_UP) + " ");


        if(2*x == a && 2*y == b) {
            System.out.print("1");
        } else {
            System.out.print("0");
        }
    }
}
