N=int(input())
A=[int(i) for i in input().split()]
col=[0 for i in range(8)]
fre=0
for a in A:
  if a<3200:
    col[a//400]+=1
  else:
    fre+=1
ans=0
# print(col)
for c in col:
  if c>0:
    ans+=1

if ans==0:
  MIN=1
else:
  MIN=ans

ans+=fre
if ans<=8:
  MAX=ans
else:
  MAX=8
print(MIN,MAX)