
w, h ,x, y = list(map(int, input().split()))
ans = str(w*h/2)
if x == w/2 and y == h/2:
  ans2 = "1"
else:
  ans2 = "0"
  
print(ans+" "+ans2) 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 = str(w*h/2) ans str(w*h/2) str w*h/2 w*h w h 2 if x == w/2 and y == h/2:
  ans2 = "1"
else:
  ans2 = "0"
   x == w/2 and y == h/2 x == w/2 x w/2 w 2 y == h/2 y h/2 h 2 ans2 = "1" ans2 "1" ans2 = "0" ans2 "0" print(ans+" "+ans2) print ans+" "+ans2 ans+" " ans " " ans2 w, h ,x, y = list(map(int, input().split())) list(map(int, input().split())) w ans = str(w*h/2) str(w*h/2) ans h ,x, y = list(map(int, input().split())) list(map(int, input().split())) h x, y = list(map(int, input().split())) list(map(int, input().split())) x y = list(map(int, input().split())) list(map(int, input().split())) y ans2 = "0" "0" ans2 ans2 = "1" "1" ans2

w, h ,x, y = list(map(int, input().split()))
ans = str(w*h/2)
if x == w/2 and y == h/2:
  ans2 = "1"
else:
  ans2 = "0"
  
print(ans+" "+ans2)
