W, H, x, y = map(int, input().split())

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

print( W*H/2, 1 if (x+x == W) and (y+y == H) else 0)