n = int(input())
lst1 = list(map(int,input().split()))

lst2 = [0]*8

for i in range(n):
    for j in range(8):
        if lst1[i] < 400*(j+1):
            lst2[j] += 1
            break
    if lst1[i] >= 3200:
        lst2[7] += 1

ans = 0
for i in range(7):
    if lst2[i]:
        ans += 1

print(ans if not lst2[7] else ans +1)
print(ans+lst2[7])
