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

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

max = W*H/2
many = 1 if x==W/2 and y==H/2 else 0
print(max,many)