n=int(input())
arr=list(map(int,input().split()))
for i in range(n):
  arr[i]=arr[i]//400
cnt=[arr.count(i) for i in range(9)]
ans=0
for i in range(8):
  if cnt[i]!=0:
    ans+=1
if ans==0:
  print(1,cnt[-1])
else:
  print(ans,ans+cnt[-1])