# coding = SJIS

w, h, x, y = map(int, input().split())

area = w * h
ans = area / 2
ok = 0

if x == w / 2 and y == h / 2:
    ok = 1

print(ans, ok) w, h, x, y = map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y area = w * h area w * h w h ans = area / 2 ans area / 2 area 2 ok = 0 ok 0 if x == w / 2 and y == h / 2:
    ok = 1 x == w / 2 and y == h / 2 x == w / 2 x w / 2 w 2 y == h / 2 y h / 2 h 2 ok = 1 ok 1 print(ans, ok) print ans ok ans = area / 2 area / 2 ans x, y = map(int, input().split()) map(int, input().split()) x y = map(int, input().split()) map(int, input().split()) y 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 ok = 1 1 ok area = w * h w * h area ok = 0 0 ok
# coding = SJIS

w, h, x, y = map(int, input().split())

area = w * h
ans = area / 2
ok = 0

if x == w / 2 and y == h / 2:
    ok = 1

print(ans, ok)