import java.util.*;

public class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        double W = sc.nextDouble();
        double H = sc.nextDouble();
        double x = sc.nextDouble();
        double y = sc.nextDouble();

        System.out.println((W*H) / 2);
        if (((W/x) == 2) && ((H/y) == 2))
            System.out.println(1);
        else
            System.out.println(0);
        sc.close();
    }
} import java.util.*; util.* java public class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        double W = sc.nextDouble();
        double H = sc.nextDouble();
        double x = sc.nextDouble();
        double y = sc.nextDouble();

        System.out.println((W*H) / 2);
        if (((W/x) == 2) && ((H/y) == 2))
            System.out.println(1);
        else
            System.out.println(0);
        sc.close();
    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        double W = sc.nextDouble();
        double H = sc.nextDouble();
        double x = sc.nextDouble();
        double y = sc.nextDouble();

        System.out.println((W*H) / 2);
        if (((W/x) == 2) && ((H/y) == 2))
            System.out.println(1);
        else
            System.out.println(0);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        
        double W = sc.nextDouble();
        double H = sc.nextDouble();
        double x = sc.nextDouble();
        double y = sc.nextDouble();

        System.out.println((W*H) / 2);
        if (((W/x) == 2) && ((H/y) == 2))
            System.out.println(1);
        else
            System.out.println(0);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double W = sc.nextDouble(); W sc.nextDouble() sc.nextDouble sc double H = sc.nextDouble(); H sc.nextDouble() sc.nextDouble sc double x = sc.nextDouble(); x sc.nextDouble() sc.nextDouble sc double y = sc.nextDouble(); y sc.nextDouble() sc.nextDouble sc System.out.println((W*H) / 2) System.out.println System.out System System.out (W*H) / 2 (W*H) W H 2 if (((W/x) == 2) && ((H/y) == 2))
            System.out.println(1);
        else
            System.out.println(0); ((W/x) == 2) && ((H/y) == 2) ((W/x) == 2) (W/x) W x 2 ((H/y) == 2) (H/y) H y 2 System.out.println(1) System.out.println System.out System System.out 1 System.out.println(0) System.out.println System.out System System.out 0 sc.close() sc.close sc String args[] args public class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        double W = sc.nextDouble();
        double H = sc.nextDouble();
        double x = sc.nextDouble();
        double y = sc.nextDouble();

        System.out.println((W*H) / 2);
        if (((W/x) == 2) && ((H/y) == 2))
            System.out.println(1);
        else
            System.out.println(0);
        sc.close();
    }
} public class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        double W = sc.nextDouble();
        double H = sc.nextDouble();
        double x = sc.nextDouble();
        double y = sc.nextDouble();

        System.out.println((W*H) / 2);
        if (((W/x) == 2) && ((H/y) == 2))
            System.out.println(1);
        else
            System.out.println(0);
        sc.close();
    }
} Main
import java.util.*;

public class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        double W = sc.nextDouble();
        double H = sc.nextDouble();
        double x = sc.nextDouble();
        double y = sc.nextDouble();

        System.out.println((W*H) / 2);
        if (((W/x) == 2) && ((H/y) == 2))
            System.out.println(1);
        else
            System.out.println(0);
        sc.close();
    }
}