w,h,x,y = map(int,input().split())

ans2=0
if (x==w/2 and y==h/2):
    ans2=1
print(w*h/2,ans2) w,h,x,y = map(int,input().split()) w map(int,input().split()) map int input().split() ().split () input split h x y ans2=0 ans2 0 if (x==w/2 and y==h/2):
    ans2=1 x==w/2 and y==h/2 x==w/2 x w/2 w 2 y==h/2 y h/2 h 2 ans2=1 ans2 1 print(w*h/2,ans2) print w*h/2 w*h w h 2 ans2 h,x,y = map(int,input().split()) map(int,input().split()) h ans2=0 0 ans2 y = map(int,input().split()) map(int,input().split()) y w,h,x,y = map(int,input().split()) map(int,input().split()) w x,y = map(int,input().split()) map(int,input().split()) x ans2=1 1 ans2
w,h,x,y = map(int,input().split())

ans2=0
if (x==w/2 and y==h/2):
    ans2=1
print(w*h/2,ans2)
