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