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

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

        Scanner scanner = new Scanner(System.in);
        BigDecimal  W = new BigDecimal(scanner.next());
        BigDecimal H = new BigDecimal(scanner.next());
        BigDecimal x = new BigDecimal(scanner.next());
        BigDecimal y = new BigDecimal(scanner.next());

        BigDecimal menseki = W.multiply(H).divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfW = W.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfH = H.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);

        int divType = 0;
        if (halfW.compareTo(x) == 0
                && halfH.compareTo(y) == 0) {
            divType = 1;
        }
        System.out.printf("%f %d\n", menseki.doubleValue(), divType);
    }
} 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 scanner = new Scanner(System.in);
        BigDecimal  W = new BigDecimal(scanner.next());
        BigDecimal H = new BigDecimal(scanner.next());
        BigDecimal x = new BigDecimal(scanner.next());
        BigDecimal y = new BigDecimal(scanner.next());

        BigDecimal menseki = W.multiply(H).divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfW = W.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfH = H.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);

        int divType = 0;
        if (halfW.compareTo(x) == 0
                && halfH.compareTo(y) == 0) {
            divType = 1;
        }
        System.out.printf("%f %d\n", menseki.doubleValue(), divType);
    }
} Main public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        BigDecimal  W = new BigDecimal(scanner.next());
        BigDecimal H = new BigDecimal(scanner.next());
        BigDecimal x = new BigDecimal(scanner.next());
        BigDecimal y = new BigDecimal(scanner.next());

        BigDecimal menseki = W.multiply(H).divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfW = W.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfH = H.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);

        int divType = 0;
        if (halfW.compareTo(x) == 0
                && halfH.compareTo(y) == 0) {
            divType = 1;
        }
        System.out.printf("%f %d\n", menseki.doubleValue(), divType);
    } main {

        Scanner scanner = new Scanner(System.in);
        BigDecimal  W = new BigDecimal(scanner.next());
        BigDecimal H = new BigDecimal(scanner.next());
        BigDecimal x = new BigDecimal(scanner.next());
        BigDecimal y = new BigDecimal(scanner.next());

        BigDecimal menseki = W.multiply(H).divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfW = W.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfH = H.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);

        int divType = 0;
        if (halfW.compareTo(x) == 0
                && halfH.compareTo(y) == 0) {
            divType = 1;
        }
        System.out.printf("%f %d\n", menseki.doubleValue(), divType);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) BigDecimal  W = new BigDecimal(scanner.next()); W new BigDecimal(scanner.next()) BigDecimal H = new BigDecimal(scanner.next()); H new BigDecimal(scanner.next()) BigDecimal x = new BigDecimal(scanner.next()); x new BigDecimal(scanner.next()) BigDecimal y = new BigDecimal(scanner.next()); y new BigDecimal(scanner.next()) BigDecimal menseki = W.multiply(H).divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP); menseki W.multiply(H).divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP) W.multiply(H).divide W.multiply(H) W.multiply W H BigDecimal.valueOf(2) BigDecimal.valueOf BigDecimal 2 9 RoundingMode.HALF_UP RoundingMode RoundingMode.HALF_UP BigDecimal halfW = W.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP); halfW W.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP) W.divide W BigDecimal.valueOf(2) BigDecimal.valueOf BigDecimal 2 9 RoundingMode.HALF_UP RoundingMode RoundingMode.HALF_UP BigDecimal halfH = H.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP); halfH H.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP) H.divide H BigDecimal.valueOf(2) BigDecimal.valueOf BigDecimal 2 9 RoundingMode.HALF_UP RoundingMode RoundingMode.HALF_UP int divType = 0; divType 0 if (halfW.compareTo(x) == 0
                && halfH.compareTo(y) == 0) {
            divType = 1;
        } halfW.compareTo(x) == 0
                && halfH.compareTo(y) == 0 halfW.compareTo(x) == 0 halfW.compareTo(x) halfW.compareTo halfW x 0 halfH.compareTo(y) == 0 halfH.compareTo(y) halfH.compareTo halfH y 0 {
            divType = 1;
        } divType = 1 divType 1 System.out.printf("%f %d\n", menseki.doubleValue(), divType) System.out.printf System.out System System.out "%f %d\n" menseki.doubleValue() menseki.doubleValue menseki divType String[] args args public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        BigDecimal  W = new BigDecimal(scanner.next());
        BigDecimal H = new BigDecimal(scanner.next());
        BigDecimal x = new BigDecimal(scanner.next());
        BigDecimal y = new BigDecimal(scanner.next());

        BigDecimal menseki = W.multiply(H).divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfW = W.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfH = H.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);

        int divType = 0;
        if (halfW.compareTo(x) == 0
                && halfH.compareTo(y) == 0) {
            divType = 1;
        }
        System.out.printf("%f %d\n", menseki.doubleValue(), divType);
    }
} public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        BigDecimal  W = new BigDecimal(scanner.next());
        BigDecimal H = new BigDecimal(scanner.next());
        BigDecimal x = new BigDecimal(scanner.next());
        BigDecimal y = new BigDecimal(scanner.next());

        BigDecimal menseki = W.multiply(H).divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfW = W.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfH = H.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);

        int divType = 0;
        if (halfW.compareTo(x) == 0
                && halfH.compareTo(y) == 0) {
            divType = 1;
        }
        System.out.printf("%f %d\n", menseki.doubleValue(), divType);
    }
} Main
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;

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

        Scanner scanner = new Scanner(System.in);
        BigDecimal  W = new BigDecimal(scanner.next());
        BigDecimal H = new BigDecimal(scanner.next());
        BigDecimal x = new BigDecimal(scanner.next());
        BigDecimal y = new BigDecimal(scanner.next());

        BigDecimal menseki = W.multiply(H).divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfW = W.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);
        BigDecimal halfH = H.divide(BigDecimal.valueOf(2), 9, RoundingMode.HALF_UP);

        int divType = 0;
        if (halfW.compareTo(x) == 0
                && halfH.compareTo(y) == 0) {
            divType = 1;
        }
        System.out.printf("%f %d\n", menseki.doubleValue(), divType);
    }
}