W,H,x,y = map(int,input().split())
if x == 0.5*W and y == 0.5*H:
    b = 1
else:
    b = 0
print(0.5*W*H, b) 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 == 0.5*W and y == 0.5*H:
    b = 1
else:
    b = 0 x == 0.5*W and y == 0.5*H x == 0.5*W x 0.5*W 0.5 W y == 0.5*H y 0.5*H 0.5 H b = 1 b 1 b = 0 b 0 print(0.5*W*H, b) print 0.5*W*H 0.5*W 0.5 W H b 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 b = 0 0 b y = map(int,input().split()) map(int,input().split()) y x,y = map(int,input().split()) map(int,input().split()) x b = 1 1 b
W,H,x,y = map(int,input().split())
if x == 0.5*W and y == 0.5*H:
    b = 1
else:
    b = 0
print(0.5*W*H, b)