W, H, x, y = map(int, input().split())
S = W*H/2
can = 1 if 2*x == W and 2*y == H else 0

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

print(S, can)