w,h,x,y=list(map(int,input().split()));print(((w*h)/2,int(2*x==w and 2*y==h)))
w,h,x,y=list(map(int,input().split()));print((w*h/2,int(2*x==w and 2*y==h)))
w, h, x, y = list(map(int, input().split()))
print(((w * h) / 2, int(2 * x == w and 2 * y == h)))

w, h, x, y = list(map(int, input().split()))
print((w * h / 2, int(2 * x == w and 2 * y == h)))

-print(((w * h) / 2, int(2 * x == w and 2 * y == h))) +print((w * h / 2, int(2 * x == w and 2 * y == h)))