w, h, x, y = list(map(int, input().split()))

a = w*h/2
m = "1" if (x==w/2) and (y==h/2) else "0"

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

a = w*h/2
m = "1" if (x==w/2) and (y==h/2) else "0"

print(str(a) + " " + m)