w,h,x,y = map(int,input().split())
xx = w-x
yy = h-y
if x == xx and y == yy:
    a = 1
else:
    a = 0
print(w*h/2,a) w,h,x,y = map(int,input().split()) w map(int,input().split()) map int input().split() ().split () input split h x y xx = w-x xx w-x w x yy = h-y yy h-y h y if x == xx and y == yy:
    a = 1
else:
    a = 0 x == xx and y == yy x == xx x xx y == yy y yy a = 1 a 1 a = 0 a 0 print(w*h/2,a) print w*h/2 w*h w h 2 a a = 1 1 a w,h,x,y = map(int,input().split()) map(int,input().split()) w yy = h-y h-y yy x,y = map(int,input().split()) map(int,input().split()) x xx = w-x w-x xx h,x,y = map(int,input().split()) map(int,input().split()) h y = map(int,input().split()) map(int,input().split()) y a = 0 0 a
w,h,x,y = map(int,input().split())
xx = w-x
yy = h-y
if x == xx and y == yy:
    a = 1
else:
    a = 0
print(w*h/2,a)