text: 
  
  n = int(input())
  arr = list(map(int, input().split()))
  print("{:.6f}".format(len([x for x in arr if x > 0]) / n))
  print("{:.6f}".format(len([x for x in arr if x < 0]) / n))
  print("{:.6f}".format(len([x for x in arr if x == 0]) / n))
  