N = int(input())
a = sorted([int(i)//400 for i in input().split()])
k = 0
for i in range(1,6):
    k += a.count(i+7)
minn = len(set(a))-(1 if k else 0)
ans = []
ans.append(minn)
if k >= 1:
    maxn = minn+k
else:
    maxn = minn
ans.append(maxn)
print(*ans)