def col(n):
  if 1<=n<400:
    return 1
  if 400<=n<800:
    return 2
  if 800<=n<1200:
    return 3
  if 1200<=n<1600:
    return 4
  if 1600<=n<2000:
    return 5
  if 2000<=n<2400:
    return 6
  if 2400<=n<2800:
    return 7
  if 2800<=n<3200:
    return 8
  if n>=3200:
    return 9

n=int(input())
l=list(map(int,input().split()))
list=[]
for i in l:
  list.append(col(i))
p=list.count(9)
if p==0:
  print(len(set(list)),len(set(list)))
else:
  print(len(set(list))-1,len(set(list))+p-1)