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

area = W * H / 2

checker = 0

if(x == W / 2 and y == H / 2):
    checker = 1

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

area = W * H / 2

checker = 0

if(x == W / 2 and y == H / 2):
    checker = 1

print(area, checker)