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

ans0 = float(W * H) / 2

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

ans0 = float(W * H) / 2

ans1 = 0
if W%2 == 0 and H%2 == 0 and W//2 == x and H//2 == y:
    ans1 = 1
    
print(ans0, ans1)
