import java.util.*;
import java.io.*;
public class Main{
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int w = Integer.parseInt(sc.next());
		int h = Integer.parseInt(sc.next());
		boolean ebishu = false;
		if(w == 2 * Integer.parseInt(sc.next()) && h == 2 * Integer.parseInt(sc.next())) ebishu = true;
		ou.print(w * (long)h / 2.0 + " ");
		if(ebishu) ou.print(1 + "\n");
		else ou.print(0 + "\n");
		ou.flush();
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int w = Integer.parseInt(sc.next());
		int h = Integer.parseInt(sc.next());
		boolean ebishu = false;
		if(w == 2 * Integer.parseInt(sc.next()) && h == 2 * Integer.parseInt(sc.next())) ebishu = true;
		ou.print(w * (long)h / 2.0 + " ");
		if(ebishu) ou.print(1 + "\n");
		else ou.print(0 + "\n");
		ou.flush();
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int w = Integer.parseInt(sc.next());
		int h = Integer.parseInt(sc.next());
		boolean ebishu = false;
		if(w == 2 * Integer.parseInt(sc.next()) && h == 2 * Integer.parseInt(sc.next())) ebishu = true;
		ou.print(w * (long)h / 2.0 + " ");
		if(ebishu) ou.print(1 + "\n");
		else ou.print(0 + "\n");
		ou.flush();
    } main {
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int w = Integer.parseInt(sc.next());
		int h = Integer.parseInt(sc.next());
		boolean ebishu = false;
		if(w == 2 * Integer.parseInt(sc.next()) && h == 2 * Integer.parseInt(sc.next())) ebishu = true;
		ou.print(w * (long)h / 2.0 + " ");
		if(ebishu) ou.print(1 + "\n");
		else ou.print(0 + "\n");
		ou.flush();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter ou = new PrintWriter(System.out); ou new PrintWriter(System.out) 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 boolean ebishu = false; ebishu false if(w == 2 * Integer.parseInt(sc.next()) && h == 2 * Integer.parseInt(sc.next())) ebishu = true; w == 2 * Integer.parseInt(sc.next()) && h == 2 * Integer.parseInt(sc.next()) w == 2 * Integer.parseInt(sc.next()) w 2 * Integer.parseInt(sc.next()) 2 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc h == 2 * Integer.parseInt(sc.next()) h 2 * Integer.parseInt(sc.next()) 2 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ebishu = true ebishu true ou.print(w * (long)h / 2.0 + " ") ou.print ou w * (long)h / 2.0 + " " w * (long)h / 2.0 w * (long)h w (long)h 2.0 " " if(ebishu) ou.print(1 + "\n");
		else ou.print(0 + "\n"); ebishu ou.print(1 + "\n") ou.print ou 1 + "\n" 1 "\n" ou.print(0 + "\n") ou.print ou 0 + "\n" 0 "\n" ou.flush() ou.flush ou String[] args args public class Main{
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int w = Integer.parseInt(sc.next());
		int h = Integer.parseInt(sc.next());
		boolean ebishu = false;
		if(w == 2 * Integer.parseInt(sc.next()) && h == 2 * Integer.parseInt(sc.next())) ebishu = true;
		ou.print(w * (long)h / 2.0 + " ");
		if(ebishu) ou.print(1 + "\n");
		else ou.print(0 + "\n");
		ou.flush();
    }
} public class Main{
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int w = Integer.parseInt(sc.next());
		int h = Integer.parseInt(sc.next());
		boolean ebishu = false;
		if(w == 2 * Integer.parseInt(sc.next()) && h == 2 * Integer.parseInt(sc.next())) ebishu = true;
		ou.print(w * (long)h / 2.0 + " ");
		if(ebishu) ou.print(1 + "\n");
		else ou.print(0 + "\n");
		ou.flush();
    }
} Main
import java.util.*;
import java.io.*;
public class Main{
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int w = Integer.parseInt(sc.next());
		int h = Integer.parseInt(sc.next());
		boolean ebishu = false;
		if(w == 2 * Integer.parseInt(sc.next()) && h == 2 * Integer.parseInt(sc.next())) ebishu = true;
		ou.print(w * (long)h / 2.0 + " ");
		if(ebishu) ou.print(1 + "\n");
		else ou.print(0 + "\n");
		ou.flush();
    }
}