n = int(input())
a = map(int,input().split())
s = set()
g = 0
for ai in a:
    x = ai//400
    if x<8:
        s.add(x)
    else:
        g+=1
if g>=7:
    g-=7
    print(len(s),len(s)+g)
else:
    print(len(s),len(s)+g)