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