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

pw = w/2
ph = h/2

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

pw = w/2
ph = h/2

print(w*h/2, 1 if(pw == x and ph == y) else 0)
