N = int(input().strip())
a = list(map(int, input().strip().split()))
cl = [0 for _ in range(9)]

for _a in a:
  cl[min(_a//400, 8)] += 1

f = cl[-1]
minc = sum([1 for c in cl[:8] if c!=0])
print(max(minc, 1), min(minc + f, 8))