W,H,x,y = map(int, input().split())

area = str(W * H / 2)
if W / 2 == x and H / 2 == y:
  center = '1'
else:
  center = '0'
  
print(area + ' ' + center) W,H,x,y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H x y area = str(W * H / 2) area str(W * H / 2) str W * H / 2 W * H W H 2 if W / 2 == x and H / 2 == y:
  center = '1'
else:
  center = '0'
   W / 2 == x and H / 2 == y W / 2 == x W / 2 W 2 x H / 2 == y H / 2 H 2 y center = '1' center '1' center = '0' center '0' print(area + ' ' + center) print area + ' ' + center area + ' ' area ' ' center y = map(int, input().split()) map(int, input().split()) y center = '0' '0' center 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 center = '1' '1' center x,y = map(int, input().split()) map(int, input().split()) x area = str(W * H / 2) str(W * H / 2) area
W,H,x,y = map(int, input().split())

area = str(W * H / 2)
if W / 2 == x and H / 2 == y:
  center = '1'
else:
  center = '0'
  
print(area + ' ' + center)