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

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

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