#WIP
#print(1 or 3)
#print(1 and 3)
W,H,x,y=map(int,input().split())
print(W*H/2,'1' if W/2==x and H/2==y else '0') W,H,x,y=map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H x y print(W*H/2,'1' if W/2==x and H/2==y else '0') print W*H/2 W*H W H 2 '1' if W/2==x and H/2==y else '0' W/2==x and H/2==y W/2==x W/2 W 2 x H/2==y H/2 H 2 y '1' '0' 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
#WIP
#print(1 or 3)
#print(1 and 3)
W,H,x,y=map(int,input().split())
print(W*H/2,'1' if W/2==x and H/2==y else '0')
