W, H, x, y = list(map(int, input().split()))
s_max = W * H / 2
m = 1 if (x == W / 2) and (y == H / 2) else 0
print(s_max, m) W, H, x, y = list(map(int, input().split())) W list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split H x y s_max = W * H / 2 s_max W * H / 2 W * H W H 2 m = 1 if (x == W / 2) and (y == H / 2) else 0 m 1 if (x == W / 2) and (y == H / 2) else 0 (x == W / 2) and (y == H / 2) x == W / 2 x W / 2 W 2 y == H / 2 y H / 2 H 2 1 0 print(s_max, m) print s_max m x, y = list(map(int, input().split())) list(map(int, input().split())) x y = list(map(int, input().split())) list(map(int, input().split())) y s_max = W * H / 2 W * H / 2 s_max m = 1 if (x == W / 2) and (y == H / 2) else 0 1 if (x == W / 2) and (y == H / 2) else 0 m W, H, x, y = list(map(int, input().split())) list(map(int, input().split())) W H, x, y = list(map(int, input().split())) list(map(int, input().split())) H
W, H, x, y = list(map(int, input().split()))
s_max = W * H / 2
m = 1 if (x == W / 2) and (y == H / 2) else 0
print(s_max, m)
