N = int(input())
R = [(int(i)//400) for i in input().split()]
S = set()
f = 0
for i in R:
    if i < 8:
        S.add(i)
    else:
        f += 1

t = S.__len__()
mx = min(t+f, 8)
if t == 0:
    t = 1
print(t,mx)
