#!/usr/bin/env python3
W,H,X,Y=map(int,input().split())
m = W*H/2
i = 0
if W%2 < 1 and H%2 < 1 and W//2 == X and H//2 == Y:
    i = 1
print(m,i) W,H,X,Y=map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H X Y m = W*H/2 m W*H/2 W*H W H 2 i = 0 i 0 if W%2 < 1 and H%2 < 1 and W//2 == X and H//2 == Y:
    i = 1 W%2 < 1 and H%2 < 1 and W//2 == X and H//2 == Y W%2 < 1 and H%2 < 1 and W//2 == X W%2 < 1 and H%2 < 1 W%2 < 1 W%2 W 2 1 H%2 < 1 H%2 H 2 1 W//2 == X W//2 W 2 X H//2 == Y H//2 H 2 Y i = 1 i 1 print(m,i) print m i i = 0 0 i Y=map(int,input().split()) map(int,input().split()) Y i = 1 1 i 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 m = W*H/2 W*H/2 m X,Y=map(int,input().split()) map(int,input().split()) X
#!/usr/bin/env python3
W,H,X,Y=map(int,input().split())
m = W*H/2
i = 0
if W%2 < 1 and H%2 < 1 and W//2 == X and H//2 == Y:
    i = 1
print(m,i)
