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

mx=W*H/2
mul=0
if x==W/2 and y==H/2:
    mul=1

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

mx=W*H/2
mul=0
if x==W/2 and y==H/2:
    mul=1

print(mx, mul)