a,b,c,d=map(int,input().split())
if a/2==c and b/2==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 if a/2==c and b/2==d:
  print(a*b/2,1)
else:
  print(a*b/2,0) a/2==c and b/2==d a/2==c a/2 a 2 c b/2==d b/2 b 2 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 a,b,c,d=map(int,input().split()) map(int,input().split()) a d=map(int,input().split()) map(int,input().split()) d b,c,d=map(int,input().split()) map(int,input().split()) b c,d=map(int,input().split()) map(int,input().split()) c
a,b,c,d=map(int,input().split())
if a/2==c and b/2==d:
  print(a*b/2,1)
else:
  print(a*b/2,0)