N = int(input())
a = list(map(int, input().split()))

b = [val//400 for val in a]
#print(b)
c = set(b)
if b.count(8):
    M=len(c)-1+b.count(8)
    m=len(c)-1
    if m == 0:
        m=1
else:
    M=len(c)
    m=M
print(m, M)