n = int(input())
a = list(map(int,input().split()))
c = []
w = []
for i in range(n):
  t = a[i]//400
  if t < 8 and t not in c:
    c.append(t)
  if t>=8:
    w.append(t)

print(len(c), len(c)+len(w))