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

area = W*H/2
center_x = W/2
center_y = H/2

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

area = W*H/2
center_x = W/2
center_y = H/2

if center_x == x and center_y == y:
    print(area, 1)
else:
    print(area, 0)