W, H, x, y = map(int, input().split())
area = W * H / 2
multi = x * 2 == W and y * 2 == H
print(area, 1 if multi 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 area = W * H / 2 area W * H / 2 W * H W H 2 multi = x * 2 == W and y * 2 == H multi x * 2 == W and y * 2 == H x * 2 == W x * 2 x 2 W y * 2 == H y * 2 y 2 H print(area, 1 if multi else 0) print area 1 if multi else 0 multi 1 0 H, x, y = map(int, input().split()) map(int, input().split()) H W, H, x, y = map(int, input().split()) map(int, input().split()) W multi = x * 2 == W and y * 2 == H x * 2 == W and y * 2 == H multi x, y = map(int, input().split()) map(int, input().split()) x area = W * H / 2 W * H / 2 area y = map(int, input().split()) map(int, input().split()) y
W, H, x, y = map(int, input().split())
area = W * H / 2
multi = x * 2 == W and y * 2 == H
print(area, 1 if multi else 0)