W,H,x,y = list(map(int,input().split()))

ans_1 = W*H/2
ans_2 = 0
if x == W/2 and y == H/2:
  ans_2 = 1
  
print(ans_1,ans_2) W,H,x,y = list(map(int,input().split())) W list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split H x y ans_1 = W*H/2 ans_1 W*H/2 W*H W H 2 ans_2 = 0 ans_2 0 if x == W/2 and y == H/2:
  ans_2 = 1
   x == W/2 and y == H/2 x == W/2 x W/2 W 2 y == H/2 y H/2 H 2 ans_2 = 1 ans_2 1 print(ans_1,ans_2) print ans_1 ans_2 x,y = list(map(int,input().split())) list(map(int,input().split())) x H,x,y = list(map(int,input().split())) list(map(int,input().split())) H ans_2 = 0 0 ans_2 ans_2 = 1 1 ans_2 ans_1 = W*H/2 W*H/2 ans_1 y = list(map(int,input().split())) list(map(int,input().split())) y W,H,x,y = list(map(int,input().split())) list(map(int,input().split())) W
W,H,x,y = list(map(int,input().split()))

ans_1 = W*H/2
ans_2 = 0
if x == W/2 and y == H/2:
  ans_2 = 1
  
print(ans_1,ans_2)