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

if x*2==W and y*2==H:
    print(H*W/2,end=" ")
    print(1)
else:
    print(H*W/2,end=" ")
    print(0) 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*2==W and y*2==H:
    print(H*W/2,end=" ")
    print(1)
else:
    print(H*W/2,end=" ")
    print(0) x*2==W and y*2==H x*2==W x*2 x 2 W y*2==H y*2 y 2 H print(H*W/2,end=" ") print H*W/2 H*W H W 2 end=" " end " " print(1) print 1 print(H*W/2,end=" ") print H*W/2 H*W H W 2 end=" " end " " print(0) print 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 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())

if x*2==W and y*2==H:
    print(H*W/2,end=" ")
    print(1)
else:
    print(H*W/2,end=" ")
    print(0)