n = input()
a_s = map(lambda x: int(x), raw_input().split())
s = set([])
strong_n = 0
for a in a_s:
    rate = a/400
    if rate >= 8:
        strong_n+=1
    else:
        s.add(rate)
print len(s), len(s)+strong_n
   