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