N = int(input())
A = list(map(int,input().split()))
from collections import defaultdict
D = defaultdict(int)
for e in A: 
    D[e//400] += 1
ans = 0
for i in range(8):
    if D[i]:
        ans += 1
add = D[8]
print(ans,ans+add)
