n=int(input())
mark=[i for i in range(0,3200,400)]
mark.append(99999999999999)
check=[0]*9
def color(x):
    for i in range(len(mark)):
        if mark[i]<=x<mark[i+1]:
            return i
        
score=list(map(int,input().split()))
count=0
for x in score:
    if x<3200 and check[color(x)]==0:
        check[color(x)]=1
        count+=1
    elif x>=3200:
        check[8]+=1

def minimum(count):
    return max(count,1)
def maximum(check,count):
    if count+check[8]>=8:
        return 8
    return count+check[8] 
print(minimum(count),maximum(check,count))