n = int(input())
a = list(map(int,input().split()))
x = [0]*8
m = 0
for i in a:
    if i//400<8:
        x[i//400]+=1
    else:
        m+=1

ans1 = max(1,8-x.count(0))
ans2 = min(8,ans1+m)
print(ans1,ans2)