import java.util.*;
import java.math.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int wide = Integer.parseInt(sc.next());
        int height = Integer.parseInt(sc.next());
        int w = Integer.parseInt(sc.next());
        int h = Integer.parseInt(sc.next());
        BigDecimal wi = BigDecimal.valueOf(wide);
        BigDecimal he = BigDecimal.valueOf(height);
        BigDecimal two = BigDecimal.valueOf(2);
        BigDecimal res = wi.multiply(he);
        res = res.divide(two);
        int i = 0;
        if(wide%2==0&&w*2==wide) {
            if(height%2==0&&h*2==height) {
                i = 1;
            }
        }
        System.out.println(res+" "+i);
    }
} import java.util.*; util.* java import java.math.*; math.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int wide = Integer.parseInt(sc.next());
        int height = Integer.parseInt(sc.next());
        int w = Integer.parseInt(sc.next());
        int h = Integer.parseInt(sc.next());
        BigDecimal wi = BigDecimal.valueOf(wide);
        BigDecimal he = BigDecimal.valueOf(height);
        BigDecimal two = BigDecimal.valueOf(2);
        BigDecimal res = wi.multiply(he);
        res = res.divide(two);
        int i = 0;
        if(wide%2==0&&w*2==wide) {
            if(height%2==0&&h*2==height) {
                i = 1;
            }
        }
        System.out.println(res+" "+i);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int wide = Integer.parseInt(sc.next());
        int height = Integer.parseInt(sc.next());
        int w = Integer.parseInt(sc.next());
        int h = Integer.parseInt(sc.next());
        BigDecimal wi = BigDecimal.valueOf(wide);
        BigDecimal he = BigDecimal.valueOf(height);
        BigDecimal two = BigDecimal.valueOf(2);
        BigDecimal res = wi.multiply(he);
        res = res.divide(two);
        int i = 0;
        if(wide%2==0&&w*2==wide) {
            if(height%2==0&&h*2==height) {
                i = 1;
            }
        }
        System.out.println(res+" "+i);
    } main {
        Scanner sc = new Scanner(System.in);
        int wide = Integer.parseInt(sc.next());
        int height = Integer.parseInt(sc.next());
        int w = Integer.parseInt(sc.next());
        int h = Integer.parseInt(sc.next());
        BigDecimal wi = BigDecimal.valueOf(wide);
        BigDecimal he = BigDecimal.valueOf(height);
        BigDecimal two = BigDecimal.valueOf(2);
        BigDecimal res = wi.multiply(he);
        res = res.divide(two);
        int i = 0;
        if(wide%2==0&&w*2==wide) {
            if(height%2==0&&h*2==height) {
                i = 1;
            }
        }
        System.out.println(res+" "+i);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int wide = Integer.parseInt(sc.next()); wide Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int height = Integer.parseInt(sc.next()); height Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int w = Integer.parseInt(sc.next()); w Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int h = Integer.parseInt(sc.next()); h Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc BigDecimal wi = BigDecimal.valueOf(wide); wi BigDecimal.valueOf(wide) BigDecimal.valueOf BigDecimal wide BigDecimal he = BigDecimal.valueOf(height); he BigDecimal.valueOf(height) BigDecimal.valueOf BigDecimal height BigDecimal two = BigDecimal.valueOf(2); two BigDecimal.valueOf(2) BigDecimal.valueOf BigDecimal 2 BigDecimal res = wi.multiply(he); res wi.multiply(he) wi.multiply wi he res = res.divide(two) res res.divide(two) res.divide res two int i = 0; i 0 if(wide%2==0&&w*2==wide) {
            if(height%2==0&&h*2==height) {
                i = 1;
            }
        } wide%2==0&&w*2==wide wide%2==0 wide%2 wide 2 0 w*2==wide w*2 w 2 wide {
            if(height%2==0&&h*2==height) {
                i = 1;
            }
        } if(height%2==0&&h*2==height) {
                i = 1;
            } height%2==0&&h*2==height height%2==0 height%2 height 2 0 h*2==height h*2 h 2 height {
                i = 1;
            } i = 1 i 1 System.out.println(res+" "+i) System.out.println System.out System System.out res+" "+i res+" "+i res " " i String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int wide = Integer.parseInt(sc.next());
        int height = Integer.parseInt(sc.next());
        int w = Integer.parseInt(sc.next());
        int h = Integer.parseInt(sc.next());
        BigDecimal wi = BigDecimal.valueOf(wide);
        BigDecimal he = BigDecimal.valueOf(height);
        BigDecimal two = BigDecimal.valueOf(2);
        BigDecimal res = wi.multiply(he);
        res = res.divide(two);
        int i = 0;
        if(wide%2==0&&w*2==wide) {
            if(height%2==0&&h*2==height) {
                i = 1;
            }
        }
        System.out.println(res+" "+i);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int wide = Integer.parseInt(sc.next());
        int height = Integer.parseInt(sc.next());
        int w = Integer.parseInt(sc.next());
        int h = Integer.parseInt(sc.next());
        BigDecimal wi = BigDecimal.valueOf(wide);
        BigDecimal he = BigDecimal.valueOf(height);
        BigDecimal two = BigDecimal.valueOf(2);
        BigDecimal res = wi.multiply(he);
        res = res.divide(two);
        int i = 0;
        if(wide%2==0&&w*2==wide) {
            if(height%2==0&&h*2==height) {
                i = 1;
            }
        }
        System.out.println(res+" "+i);
    }
} Main
import java.util.*;
import java.math.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int wide = Integer.parseInt(sc.next());
        int height = Integer.parseInt(sc.next());
        int w = Integer.parseInt(sc.next());
        int h = Integer.parseInt(sc.next());
        BigDecimal wi = BigDecimal.valueOf(wide);
        BigDecimal he = BigDecimal.valueOf(height);
        BigDecimal two = BigDecimal.valueOf(2);
        BigDecimal res = wi.multiply(he);
        res = res.divide(two);
        int i = 0;
        if(wide%2==0&&w*2==wide) {
            if(height%2==0&&h*2==height) {
                i = 1;
            }
        }
        System.out.println(res+" "+i);
    }
}
