W, H, x, y = map(int, input().split())
p = 0
if (x, y) == (W/2, H/2):
    p = 1
print('{} {}'.format(W*H/2, p)) W, H, x, y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H x y p = 0 p 0 if (x, y) == (W/2, H/2):
    p = 1 (x, y) == (W/2, H/2) (x, y) x y (W/2, H/2) W/2 W 2 H/2 H 2 p = 1 p 1 print('{} {}'.format(W*H/2, p)) print '{} {}'.format(W*H/2, p) '{} {}'.format '{} {}' format W*H/2 W*H W H 2 p x, y = map(int, input().split()) map(int, input().split()) x y = map(int, input().split()) map(int, input().split()) y p = 1 1 p 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 p = 0 0 p
W, H, x, y = map(int, input().split())
p = 0
if (x, y) == (W/2, H/2):
    p = 1
print('{} {}'.format(W*H/2, p))