N = int(input())
a = list(map(int,input().split()))
A = []
B = []
d = []
for i in a:
    add = i // 400
    if add < 8:
        A.append(add)
    else:
        B.append(add)
    if add not in d and add < 8:
        d.append(add)
ans_min = len(d)
if 8 - len(d) <= len(B):
    ans_max = 8
else:
    ans_max = ans_min + len(B)
print(ans_min)
print(ans_max)