N=int(input())
A=[int(x) for x in input().split()]

dict={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0}

for a in A:
  if a>=3200:
    dict[8]+=1
  elif a>=2800:
    dict[7]+=1
  elif a>=2400:
    dict[6]+=1
  elif a>=2000:
    dict[5]+=1
  elif a>=1600:
    dict[4]+=1
  elif a>=1200:
    dict[3]+=1
  elif a>=800:
    dict[2]+=1
  elif a>=400:
    dict[1]+=1
  else:
    dict[0]+=1
ans=0
for i in range(8):
  if dict[i]>0:
    ans+=1
print(max(ans,1),min(ans+dict[8],8))