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

total = w*h
ans = total/2
route = 0
if w == x*2 and h == y*2:
    route = 1

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

total = w*h
ans = total/2
route = 0
if w == x*2 and h == y*2:
    route = 1

print(ans, route)

