w, h, x, y = map(int, input().split())
s = (w * h) / 2
apple = 0
if 2 * x == w and 2 * y ==h:
    apple = 1
else:
    pass
print(s, apple) w, h, x, y = map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y s = (w * h) / 2 s (w * h) / 2 w * h w h 2 apple = 0 apple 0 if 2 * x == w and 2 * y ==h:
    apple = 1
else:
    pass 2 * x == w and 2 * y ==h 2 * x == w 2 * x 2 x w 2 * y ==h 2 * y 2 y h apple = 1 apple 1 print(s, apple) print s apple apple = 1 1 apple y = map(int, input().split()) map(int, input().split()) y h, x, y = map(int, input().split()) map(int, input().split()) h x, y = map(int, input().split()) map(int, input().split()) x w, h, x, y = map(int, input().split()) map(int, input().split()) w s = (w * h) / 2 (w * h) / 2 s apple = 0 0 apple
w, h, x, y = map(int, input().split())
s = (w * h) / 2
apple = 0
if 2 * x == w and 2 * y ==h:
    apple = 1
else:
    pass
print(s, apple)
