x=int(input()) #　a1
a=list(map(int, input().split()))

rate=[0]*8
cl_all=0
for cl in a:
  if cl >=3200:
    cl_all+=1
    continue
  
  rate[cl//400]=1

if sum(rate)==0:
  print(1,1)
else:
  print(sum(rate),sum(rate)+cl_all)