def get_color(rating):
    return rating / 400

N = input()
a = map(int, raw_input().split())
colors = [get_color(a[i]) for i in range(N)]

S, cnt = set(), 0
for c in colors:
    if c < 8:
        S.add(c)
    else:
        cnt += 1
print max(len(S), 1), (len(S) + cnt)