N = int(input())
a = [int(x) for x in input().split()]

dict = {}
ans = 0
for i in range(N):
    if not( a[i]//400 in dict.keys() ):
        dict[a[i]//400] = 1
    else:
        dict[a[i]//400] += 1
for key in dict.keys():
    if key != 8:
        ans += 1
#print(dict[8])
if 8 in dict.keys():
    ans1 = ans+dict[8]
else:
    ans1 = ans
print(ans, ans1)
