n=int(input())
a=list(map(int,input().split()))
s=[0]*9
for i in range(n):
  if a[i]<400:
    s[0]+=1
  elif 400<=a[i]<800:
    s[1]+=1
  elif 800<=a[i]<1200:
    s[2]+=1
  elif 1200<=a[i]<1600:
    s[3]+=1  
  elif 1600<=a[i]<2000:
    s[4]+=1  
  elif 2000<=a[i]<2400:
    s[5]+=1  
  elif 2400<=a[i]<2800:
    s[6]+=1  
  elif 2800<=a[i]<3200:
    s[7]+=1       
  else:
    s[8]+=1
ans=0
ans1=0
for k in range(8):
  if s[k]!=0:
    ans+=1
ans1=ans+s[8]
if ans1>8:
  ans1=8
if ans==0:
  ans=1
print(ans,ans1)
    