n = int(input())
a = list(map(int, input().split()))
b = []
for i in range(n):
  a[i] = min(a[i], 3200)
  b.append(a[i] // 400)
if 8 in b:
  free = b.count(8)
  b_max = len(set(b[:-free])) + len(b[-free:])
  print("{} {}".format(max(len(set(b)) - 1, 1), b_max))
else:
  print("{} {}".format(len(set(b)), len(set(b))))
