w,h,x,y=map(int,input().split())
ma=w*h/2
W=w//2
H=h//2
if w%2==0 and h%2==0 and W==x and H==y:
    boo=1
else:
    boo=0

print(ma,boo) w,h,x,y=map(int,input().split()) w map(int,input().split()) map int input().split() ().split () input split h x y ma=w*h/2 ma w*h/2 w*h w h 2 W=w//2 W w//2 w 2 H=h//2 H h//2 h 2 if w%2==0 and h%2==0 and W==x and H==y:
    boo=1
else:
    boo=0 w%2==0 and h%2==0 and W==x and H==y w%2==0 and h%2==0 and W==x w%2==0 and h%2==0 w%2==0 w%2 w 2 0 h%2==0 h%2 h 2 0 W==x W x H==y H y boo=1 boo 1 boo=0 boo 0 print(ma,boo) print ma boo W=w//2 w//2 W w,h,x,y=map(int,input().split()) map(int,input().split()) w y=map(int,input().split()) map(int,input().split()) y ma=w*h/2 w*h/2 ma h,x,y=map(int,input().split()) map(int,input().split()) h boo=1 1 boo boo=0 0 boo H=h//2 h//2 H x,y=map(int,input().split()) map(int,input().split()) x
w,h,x,y=map(int,input().split())
ma=w*h/2
W=w//2
H=h//2
if w%2==0 and h%2==0 and W==x and H==y:
    boo=1
else:
    boo=0

print(ma,boo)