# coding: utf-8
# Your code here!
N=int(input())
A=list(map(int,input().split()))
l=[0]*9
for a in A:
    if a>=3200:
        l[8]+=1
    else:
        l[int(a//400)]=1

sl=sum(l)-l[8]
print(max(sl,0),min(sl+l[8],8))
