n = int(input())
a = list(map(int, input().split()))
d = dict()
target = 0
for i in a:
    if i < 3200:
        d[i//400] = d.get(i//400, 0) + 1
    else:
        target += 1


res = 8 - len(d)

print(max(len(d), 1), len(d)+min(res, target))