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

S = W * H * 0.5

if(x == W/2 and y == H/2):
    a = 1
else:
    a = 0

print(S,a) W,H,x,y = map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H x y S = W * H * 0.5 S W * H * 0.5 W * H W H 0.5 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(S,a) print S a S = W * H * 0.5 W * H * 0.5 S a = 0 0 a y = map(int,input().split()) map(int,input().split()) y 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 x,y = map(int,input().split()) map(int,input().split()) x a = 1 1 a
W,H,x,y = map(int,input().split())

S = W * H * 0.5

if(x == W/2 and y == H/2):
    a = 1
else:
    a = 0

print(S,a)