a, b, x, y = map(int, input().split())
ab= a*b
ans1 = ab/2
ans2 = 0


if b/2 == y and a/2 == x:
    ans2 = 1
print(ans1, ans2) a, b, x, y = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b x y ab= a*b ab a*b a b ans1 = ab/2 ans1 ab/2 ab 2 ans2 = 0 ans2 0 if b/2 == y and a/2 == x:
    ans2 = 1 b/2 == y and a/2 == x b/2 == y b/2 b 2 y a/2 == x a/2 a 2 x ans2 = 1 ans2 1 print(ans1, ans2) print ans1 ans2 ans1 = ab/2 ab/2 ans1 b, x, y = map(int, input().split()) map(int, input().split()) b ans2 = 1 1 ans2 ab= a*b a*b ab y = map(int, input().split()) map(int, input().split()) y a, b, x, y = map(int, input().split()) map(int, input().split()) a ans2 = 0 0 ans2 x, y = map(int, input().split()) map(int, input().split()) x
a, b, x, y = map(int, input().split())
ab= a*b
ans1 = ab/2
ans2 = 0


if b/2 == y and a/2 == x:
    ans2 = 1
print(ans1, ans2)