import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UncheckedIOException;
import java.util.StringTokenizer;

public class Main {
	public static void main(String[] args) {
		SC sc = new SC(System.in);
		int W=sc.nextInt();
		int H=sc.nextInt();
		int x=sc.nextInt();
		int y=sc.nextInt();
		double ans=((double)H*W)/2;
		//当然だが、二等分線が中心を通るときに対称性が生まれる（それ以外はない）（ただし、通らないといけない点のX、Yのざひょうが中心に一致するとない）
		if(2*x==W && 2*y==H) {//通らないといけないのが中心
			pl(ans+" "+1);
		}
		else if(W*y==x*H || W*(H-y)==(W-x)*H|| x*2==W || y*2==H) {//通らないといけないのが中心以外の対称軸上
			pl(ans+" "+0);
		}
		else {
			double difx=Math.abs((double)W/2-((double)x));
			double dify=Math.abs((double)H/2-((double)y));
			if(((double)W/2)-((double)H/2)/dify*difx<0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				}
			}
			else if(((double)W/2)-((double)H/2)/dify*difx>=0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			}
		}
	}
	static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	}
	public static void pl(Object o) {
		System.out.println(o);
	}
	public static void pl() {
		System.out.println();
	}
	public static void p(Object o) {
		System.out.print(o);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.UncheckedIOException; UncheckedIOException java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
	public static void main(String[] args) {
		SC sc = new SC(System.in);
		int W=sc.nextInt();
		int H=sc.nextInt();
		int x=sc.nextInt();
		int y=sc.nextInt();
		double ans=((double)H*W)/2;
		//当然だが、二等分線が中心を通るときに対称性が生まれる（それ以外はない）（ただし、通らないといけない点のX、Yのざひょうが中心に一致するとない）
		if(2*x==W && 2*y==H) {//通らないといけないのが中心
			pl(ans+" "+1);
		}
		else if(W*y==x*H || W*(H-y)==(W-x)*H|| x*2==W || y*2==H) {//通らないといけないのが中心以外の対称軸上
			pl(ans+" "+0);
		}
		else {
			double difx=Math.abs((double)W/2-((double)x));
			double dify=Math.abs((double)H/2-((double)y));
			if(((double)W/2)-((double)H/2)/dify*difx<0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				}
			}
			else if(((double)W/2)-((double)H/2)/dify*difx>=0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			}
		}
	}
	static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	}
	public static void pl(Object o) {
		System.out.println(o);
	}
	public static void pl() {
		System.out.println();
	}
	public static void p(Object o) {
		System.out.print(o);
	}
} Main public static void main(String[] args) {
		SC sc = new SC(System.in);
		int W=sc.nextInt();
		int H=sc.nextInt();
		int x=sc.nextInt();
		int y=sc.nextInt();
		double ans=((double)H*W)/2;
		//当然だが、二等分線が中心を通るときに対称性が生まれる（それ以外はない）（ただし、通らないといけない点のX、Yのざひょうが中心に一致するとない）
		if(2*x==W && 2*y==H) {//通らないといけないのが中心
			pl(ans+" "+1);
		}
		else if(W*y==x*H || W*(H-y)==(W-x)*H|| x*2==W || y*2==H) {//通らないといけないのが中心以外の対称軸上
			pl(ans+" "+0);
		}
		else {
			double difx=Math.abs((double)W/2-((double)x));
			double dify=Math.abs((double)H/2-((double)y));
			if(((double)W/2)-((double)H/2)/dify*difx<0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				}
			}
			else if(((double)W/2)-((double)H/2)/dify*difx>=0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			}
		}
	} main {
		SC sc = new SC(System.in);
		int W=sc.nextInt();
		int H=sc.nextInt();
		int x=sc.nextInt();
		int y=sc.nextInt();
		double ans=((double)H*W)/2;
		//当然だが、二等分線が中心を通るときに対称性が生まれる（それ以外はない）（ただし、通らないといけない点のX、Yのざひょうが中心に一致するとない）
		if(2*x==W && 2*y==H) {//通らないといけないのが中心
			pl(ans+" "+1);
		}
		else if(W*y==x*H || W*(H-y)==(W-x)*H|| x*2==W || y*2==H) {//通らないといけないのが中心以外の対称軸上
			pl(ans+" "+0);
		}
		else {
			double difx=Math.abs((double)W/2-((double)x));
			double dify=Math.abs((double)H/2-((double)y));
			if(((double)W/2)-((double)H/2)/dify*difx<0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				}
			}
			else if(((double)W/2)-((double)H/2)/dify*difx>=0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			}
		}
	} SC sc = new SC(System.in); sc new SC(System.in) int W=sc.nextInt(); W sc.nextInt() sc.nextInt sc int H=sc.nextInt(); H sc.nextInt() sc.nextInt sc int x=sc.nextInt(); x sc.nextInt() sc.nextInt sc int y=sc.nextInt(); y sc.nextInt() sc.nextInt sc double ans=((double)H*W)/2; ans ((double)H*W)/2 ((double)H*W) (double)H W 2 if(2*x==W && 2*y==H) {//通らないといけないのが中心
			pl(ans+" "+1);
		}
		else if(W*y==x*H || W*(H-y)==(W-x)*H|| x*2==W || y*2==H) {//通らないといけないのが中心以外の対称軸上
			pl(ans+" "+0);
		}
		else {
			double difx=Math.abs((double)W/2-((double)x));
			double dify=Math.abs((double)H/2-((double)y));
			if(((double)W/2)-((double)H/2)/dify*difx<0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				}
			}
			else if(((double)W/2)-((double)H/2)/dify*difx>=0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			}
		} 2*x==W && 2*y==H 2*x==W 2*x 2 x W 2*y==H 2*y 2 y H {//通らないといけないのが中心
			pl(ans+" "+1);
		} pl(ans+" "+1) pl ans+" "+1 ans+" "+1 ans " " 1 if(W*y==x*H || W*(H-y)==(W-x)*H|| x*2==W || y*2==H) {//通らないといけないのが中心以外の対称軸上
			pl(ans+" "+0);
		}
		else {
			double difx=Math.abs((double)W/2-((double)x));
			double dify=Math.abs((double)H/2-((double)y));
			if(((double)W/2)-((double)H/2)/dify*difx<0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				}
			}
			else if(((double)W/2)-((double)H/2)/dify*difx>=0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			}
		} W*y==x*H || W*(H-y)==(W-x)*H|| x*2==W || y*2==H x*2==W W*y==x*H || W*(H-y)==(W-x)*H|| x*2==W || y*2==H W*y==x*H W*y W y x*H x H W*(H-y)==(W-x)*H W*(H-y) W (H-y) H y (W-x)*H (W-x) W x H x*2==W x*2 x 2 W y*2==H y*2 y 2 H {//通らないといけないのが中心以外の対称軸上
			pl(ans+" "+0);
		} pl(ans+" "+0) pl ans+" "+0 ans+" "+0 ans " " 0 {
			double difx=Math.abs((double)W/2-((double)x));
			double dify=Math.abs((double)H/2-((double)y));
			if(((double)W/2)-((double)H/2)/dify*difx<0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				}
			}
			else if(((double)W/2)-((double)H/2)/dify*difx>=0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			}
		} double difx=Math.abs((double)W/2-((double)x)); difx Math.abs((double)W/2-((double)x)) Math.abs Math (double)W/2-((double)x) (double)W/2 (double)W 2 ((double)x) double dify=Math.abs((double)H/2-((double)y)); dify Math.abs((double)H/2-((double)y)) Math.abs Math (double)H/2-((double)y) (double)H/2 (double)H 2 ((double)y) if(((double)W/2)-((double)H/2)/dify*difx<0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				}
			}
			else if(((double)W/2)-((double)H/2)/dify*difx>=0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			} ((double)W/2)-((double)H/2)/dify*difx<0 ((double)W/2)-((double)H/2)/dify*difx ((double)W/2) (double)W 2 ((double)H/2)/dify*difx ((double)H/2)/dify ((double)H/2) (double)H 2 dify difx 0 {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				}
			} if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				} ((double)H/2)-((double)W/2)/difx*dify<0 ((double)H/2)-((double)W/2)/difx*dify ((double)H/2) (double)H 2 ((double)W/2)/difx*dify ((double)W/2)/difx ((double)W/2) (double)W 2 difx dify 0 {
					pl(ans+" "+0);
				} pl(ans+" "+0) pl ans+" "+0 ans+" "+0 ans " " 0 {
					pl(ans+" "+0);
				} pl(ans+" "+0) pl ans+" "+0 ans+" "+0 ans " " 0 if(((double)W/2)-((double)H/2)/dify*difx>=0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			} ((double)W/2)-((double)H/2)/dify*difx>=0 ((double)W/2)-((double)H/2)/dify*difx ((double)W/2) (double)W 2 ((double)H/2)/dify*difx ((double)H/2)/dify ((double)H/2) (double)H 2 dify difx 0 {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			} if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				} ((double)H/2)-((double)W/2)/difx*dify<0 ((double)H/2)-((double)W/2)/difx*dify ((double)H/2) (double)H 2 ((double)W/2)/difx*dify ((double)W/2)/difx ((double)W/2) (double)W 2 difx dify 0 {
					pl(ans+" "+0);
				} pl(ans+" "+0) pl ans+" "+0 ans+" "+0 ans " " 0 {
						pl(ans+" "+1);
				} pl(ans+" "+1) pl ans+" "+1 ans+" "+1 ans " " 1 String[] args args public static void pl(Object o) {
		System.out.println(o);
	} pl {
		System.out.println(o);
	} System.out.println(o) System.out.println System.out System System.out o Object o o public static void pl() {
		System.out.println();
	} pl {
		System.out.println();
	} System.out.println() System.out.println System.out System System.out public static void p(Object o) {
		System.out.print(o);
	} p {
		System.out.print(o);
	} System.out.print(o) System.out.print System.out System System.out o Object o o static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	} SC private BufferedReader reader = null; reader null private StringTokenizer tokenizer = null; tokenizer null public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		} SC {
			reader = new BufferedReader(new InputStreamReader(in));
		} reader = new BufferedReader(new InputStreamReader(in)) reader new BufferedReader(new InputStreamReader(in)) InputStream in in public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		} next {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		} if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			} tokenizer == null || !tokenizer.hasMoreTokens() tokenizer == null tokenizer null !tokenizer.hasMoreTokens() tokenizer.hasMoreTokens() tokenizer.hasMoreTokens tokenizer {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			} try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				} IOException e {
					throw new UncheckedIOException(e);
				} throw new UncheckedIOException(e); new UncheckedIOException(e) {
					tokenizer = new StringTokenizer(reader.readLine());
				} tokenizer = new StringTokenizer(reader.readLine()) tokenizer new StringTokenizer(reader.readLine()) return tokenizer.nextToken(); tokenizer.nextToken() tokenizer.nextToken tokenizer public int nextInt() {
			return Integer.parseInt(next());
		} nextInt {
			return Integer.parseInt(next());
		} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public long nextLong() {
			return Long.parseLong(next());
		} nextLong {
			return Long.parseLong(next());
		} return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public double nextDouble() {
			return Double.parseDouble(next());
		} nextDouble {
			return Double.parseDouble(next());
		} return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		} nextLine {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		} try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			} IOException e {
				throw new UncheckedIOException(e);
			} throw new UncheckedIOException(e); new UncheckedIOException(e) {
				return reader.readLine();
			} return reader.readLine(); reader.readLine() reader.readLine reader public class Main {
	public static void main(String[] args) {
		SC sc = new SC(System.in);
		int W=sc.nextInt();
		int H=sc.nextInt();
		int x=sc.nextInt();
		int y=sc.nextInt();
		double ans=((double)H*W)/2;
		//当然だが、二等分線が中心を通るときに対称性が生まれる（それ以外はない）（ただし、通らないといけない点のX、Yのざひょうが中心に一致するとない）
		if(2*x==W && 2*y==H) {//通らないといけないのが中心
			pl(ans+" "+1);
		}
		else if(W*y==x*H || W*(H-y)==(W-x)*H|| x*2==W || y*2==H) {//通らないといけないのが中心以外の対称軸上
			pl(ans+" "+0);
		}
		else {
			double difx=Math.abs((double)W/2-((double)x));
			double dify=Math.abs((double)H/2-((double)y));
			if(((double)W/2)-((double)H/2)/dify*difx<0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				}
			}
			else if(((double)W/2)-((double)H/2)/dify*difx>=0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			}
		}
	}
	static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	}
	public static void pl(Object o) {
		System.out.println(o);
	}
	public static void pl() {
		System.out.println();
	}
	public static void p(Object o) {
		System.out.print(o);
	}
} public class Main {
	public static void main(String[] args) {
		SC sc = new SC(System.in);
		int W=sc.nextInt();
		int H=sc.nextInt();
		int x=sc.nextInt();
		int y=sc.nextInt();
		double ans=((double)H*W)/2;
		//当然だが、二等分線が中心を通るときに対称性が生まれる（それ以外はない）（ただし、通らないといけない点のX、Yのざひょうが中心に一致するとない）
		if(2*x==W && 2*y==H) {//通らないといけないのが中心
			pl(ans+" "+1);
		}
		else if(W*y==x*H || W*(H-y)==(W-x)*H|| x*2==W || y*2==H) {//通らないといけないのが中心以外の対称軸上
			pl(ans+" "+0);
		}
		else {
			double difx=Math.abs((double)W/2-((double)x));
			double dify=Math.abs((double)H/2-((double)y));
			if(((double)W/2)-((double)H/2)/dify*difx<0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				}
			}
			else if(((double)W/2)-((double)H/2)/dify*difx>=0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			}
		}
	}
	static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	}
	public static void pl(Object o) {
		System.out.println(o);
	}
	public static void pl() {
		System.out.println();
	}
	public static void p(Object o) {
		System.out.print(o);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UncheckedIOException;
import java.util.StringTokenizer;

public class Main {
	public static void main(String[] args) {
		SC sc = new SC(System.in);
		int W=sc.nextInt();
		int H=sc.nextInt();
		int x=sc.nextInt();
		int y=sc.nextInt();
		double ans=((double)H*W)/2;
		//当然だが、二等分線が中心を通るときに対称性が生まれる（それ以外はない）（ただし、通らないといけない点のX、Yのざひょうが中心に一致するとない）
		if(2*x==W && 2*y==H) {//通らないといけないのが中心
			pl(ans+" "+1);
		}
		else if(W*y==x*H || W*(H-y)==(W-x)*H|| x*2==W || y*2==H) {//通らないといけないのが中心以外の対称軸上
			pl(ans+" "+0);
		}
		else {
			double difx=Math.abs((double)W/2-((double)x));
			double dify=Math.abs((double)H/2-((double)y));
			if(((double)W/2)-((double)H/2)/dify*difx<0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
					pl(ans+" "+0);
				}
			}
			else if(((double)W/2)-((double)H/2)/dify*difx>=0) {
				if(((double)H/2)-((double)W/2)/difx*dify<0) {
					pl(ans+" "+0);
				}
				else {
						pl(ans+" "+1);
				}
			}
		}
	}
	static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	}
	public static void pl(Object o) {
		System.out.println(o);
	}
	public static void pl() {
		System.out.println();
	}
	public static void p(Object o) {
		System.out.print(o);
	}
}