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

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

        final BigDecimal divide = BigDecimal.valueOf(w).multiply(BigDecimal.valueOf(h)).divide(BigDecimal.valueOf(2));
        final int able = x * 2 == w && y * 2 == h ? 1 : 0;
        System.out.println(divide + " " + able);
    }
} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int w = scanner.nextInt();
        final int h = scanner.nextInt();
        final int x = scanner.nextInt();
        final int y = scanner.nextInt();

        final BigDecimal divide = BigDecimal.valueOf(w).multiply(BigDecimal.valueOf(h)).divide(BigDecimal.valueOf(2));
        final int able = x * 2 == w && y * 2 == h ? 1 : 0;
        System.out.println(divide + " " + able);
    }
} Main public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int w = scanner.nextInt();
        final int h = scanner.nextInt();
        final int x = scanner.nextInt();
        final int y = scanner.nextInt();

        final BigDecimal divide = BigDecimal.valueOf(w).multiply(BigDecimal.valueOf(h)).divide(BigDecimal.valueOf(2));
        final int able = x * 2 == w && y * 2 == h ? 1 : 0;
        System.out.println(divide + " " + able);
    } main {
        final Scanner scanner = new Scanner(System.in);
        final int w = scanner.nextInt();
        final int h = scanner.nextInt();
        final int x = scanner.nextInt();
        final int y = scanner.nextInt();

        final BigDecimal divide = BigDecimal.valueOf(w).multiply(BigDecimal.valueOf(h)).divide(BigDecimal.valueOf(2));
        final int able = x * 2 == w && y * 2 == h ? 1 : 0;
        System.out.println(divide + " " + able);
    } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final int w = scanner.nextInt(); w scanner.nextInt() scanner.nextInt scanner final int h = scanner.nextInt(); h scanner.nextInt() scanner.nextInt scanner final int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner final int y = scanner.nextInt(); y scanner.nextInt() scanner.nextInt scanner final BigDecimal divide = BigDecimal.valueOf(w).multiply(BigDecimal.valueOf(h)).divide(BigDecimal.valueOf(2)); divide BigDecimal.valueOf(w).multiply(BigDecimal.valueOf(h)).divide(BigDecimal.valueOf(2)) BigDecimal.valueOf(w).multiply(BigDecimal.valueOf(h)).divide BigDecimal.valueOf(w).multiply(BigDecimal.valueOf(h)) BigDecimal.valueOf(w).multiply BigDecimal.valueOf(w) BigDecimal.valueOf BigDecimal w BigDecimal.valueOf(h) BigDecimal.valueOf BigDecimal h BigDecimal.valueOf(2) BigDecimal.valueOf BigDecimal 2 final int able = x * 2 == w && y * 2 == h ? 1 : 0; able x * 2 == w && y * 2 == h ? 1 : 0 x * 2 == w && y * 2 == h x * 2 == w x * 2 x 2 w y * 2 == h y * 2 y 2 h 1 0 System.out.println(divide + " " + able) System.out.println System.out System System.out divide + " " + able divide + " " + able divide " " able String[] args args public class Main {
    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int w = scanner.nextInt();
        final int h = scanner.nextInt();
        final int x = scanner.nextInt();
        final int y = scanner.nextInt();

        final BigDecimal divide = BigDecimal.valueOf(w).multiply(BigDecimal.valueOf(h)).divide(BigDecimal.valueOf(2));
        final int able = x * 2 == w && y * 2 == h ? 1 : 0;
        System.out.println(divide + " " + able);
    }
} public class Main {
    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int w = scanner.nextInt();
        final int h = scanner.nextInt();
        final int x = scanner.nextInt();
        final int y = scanner.nextInt();

        final BigDecimal divide = BigDecimal.valueOf(w).multiply(BigDecimal.valueOf(h)).divide(BigDecimal.valueOf(2));
        final int able = x * 2 == w && y * 2 == h ? 1 : 0;
        System.out.println(divide + " " + able);
    }
} Main

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

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

        final BigDecimal divide = BigDecimal.valueOf(w).multiply(BigDecimal.valueOf(h)).divide(BigDecimal.valueOf(2));
        final int able = x * 2 == w && y * 2 == h ? 1 : 0;
        System.out.println(divide + " " + able);
    }
}
