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

area = (w*h/2)
c = 0

if (x == w/2) and (y == h/2):
    c = 1

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

area = (w*h/2)
c = 0

if (x == w/2) and (y == h/2):
    c = 1

print(area,c)