n = int(input())
a = list(map(int, input().split()))
r = [0] * 9
for i in a:
    r[i//400] += 1

if sum([1 for i in r[:-1] if i != 0]) == 0:
    print(1, r[-1])

else:
    mi = sum([1 for i in r[:-1] if i != 0])
    ma = mi + r[-1]
    print(mi, ma)