a,b,c,d=map(int, input().split())

x1 = a/2
y1 = b/2

if x1 == c and y1 == d:
    print(a*b/2,1)
else:
    print(a*b/2,0) a,b,c,d=map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c d x1 = a/2 x1 a/2 a 2 y1 = b/2 y1 b/2 b 2 if x1 == c and y1 == d:
    print(a*b/2,1)
else:
    print(a*b/2,0) x1 == c and y1 == d x1 == c x1 c y1 == d y1 d print(a*b/2,1) print a*b/2 a*b a b 2 1 print(a*b/2,0) print a*b/2 a*b a b 2 0 c,d=map(int, input().split()) map(int, input().split()) c b,c,d=map(int, input().split()) map(int, input().split()) b x1 = a/2 a/2 x1 y1 = b/2 b/2 y1 a,b,c,d=map(int, input().split()) map(int, input().split()) a d=map(int, input().split()) map(int, input().split()) d
a,b,c,d=map(int, input().split())

x1 = a/2
y1 = b/2

if x1 == c and y1 == d:
    print(a*b/2,1)
else:
    print(a*b/2,0)