w, h, x, y = map(int, input().split())
ans1 = w*h/2
if w % 2 != 0 or h % 2 != 0:
    print(ans1, 0)
elif x == w//2 and y == h//2:
    print(ans1, 1)
else:
    print(ans1, 0) w, h, x, y = map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y ans1 = w*h/2 ans1 w*h/2 w*h w h 2 if w % 2 != 0 or h % 2 != 0:
    print(ans1, 0)
elif x == w//2 and y == h//2:
    print(ans1, 1)
else:
    print(ans1, 0) w % 2 != 0 or h % 2 != 0 w % 2 != 0 w % 2 w 2 0 h % 2 != 0 h % 2 h 2 0 print(ans1, 0) print ans1 0 elif x == w//2 and y == h//2:
    print(ans1, 1) x == w//2 and y == h//2 x == w//2 x w//2 w 2 y == h//2 y h//2 h 2 print(ans1, 1) print ans1 1 print(ans1, 0) print ans1 0 ans1 = w*h/2 w*h/2 ans1 w, h, x, y = map(int, input().split()) map(int, input().split()) w y = map(int, input().split()) map(int, input().split()) y 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())
ans1 = w*h/2
if w % 2 != 0 or h % 2 != 0:
    print(ans1, 0)
elif x == w//2 and y == h//2:
    print(ans1, 1)
else:
    print(ans1, 0)