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