a = list(map(int,input().split()))
S = a[0]*a[1]/2
if a[0]/2 == a[2] and a[1]/2 == a[3]:
  print(S,1)
else:
  print(S,0)
 a = list(map(int,input().split())) a list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split S = a[0]*a[1]/2 S a[0]*a[1]/2 a[0]*a[1] a[0] a 0 a[1] a 1 2 if a[0]/2 == a[2] and a[1]/2 == a[3]:
  print(S,1)
else:
  print(S,0) a[0]/2 == a[2] and a[1]/2 == a[3] a[0]/2 == a[2] a[0]/2 a[0] a 0 2 a[2] a 2 a[1]/2 == a[3] a[1]/2 a[1] a 1 2 a[3] a 3 print(S,1) print S 1 print(S,0) print S 0 a = list(map(int,input().split())) list(map(int,input().split())) a S = a[0]*a[1]/2 a[0]*a[1]/2 S
a = list(map(int,input().split()))
S = a[0]*a[1]/2
if a[0]/2 == a[2] and a[1]/2 == a[3]:
  print(S,1)
else:
  print(S,0)

