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

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

print(ans2,ans1)