N = int(input())
A = list(map(int, input().split()))

dic = {}
for i in range(10):
    dic[i] = 0

for a in A:
    if a < 3200:
        key = a//100
        key = key//4

        dic[key] += 1
    else:
        dic[9] += 1

ans = 0
for i in range(9):
    v = dic[i]
    if v > 0:
        ans += 1

if dic[9] != 0:
    ans_min = ans
    ans_max = min(8,ans+dic[9])
else:
    ans_min = ans
    ans_max = ans
print(ans_min, ans_max)
