w,h,x,y=map(int,input().split())
a=w/2
b=h/2
s=w*h/2
cnt=0
if x==a and y==b:
    cnt=1
print(s,cnt) w,h,x,y=map(int,input().split()) w map(int,input().split()) map int input().split() ().split () input split h x y a=w/2 a w/2 w 2 b=h/2 b h/2 h 2 s=w*h/2 s w*h/2 w*h w h 2 cnt=0 cnt 0 if x==a and y==b:
    cnt=1 x==a and y==b x==a x a y==b y b cnt=1 cnt 1 print(s,cnt) print s cnt s=w*h/2 w*h/2 s a=w/2 w/2 a cnt=0 0 cnt y=map(int,input().split()) map(int,input().split()) y 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 x,y=map(int,input().split()) map(int,input().split()) x b=h/2 h/2 b cnt=1 1 cnt
w,h,x,y=map(int,input().split())
a=w/2
b=h/2
s=w*h/2
cnt=0
if x==a and y==b:
    cnt=1
print(s,cnt)