N = int(input())
a = list(map(int, input().split()))
set_a = set()
cnt = 0 
Flg = False

for i in range(N):
    set_a.add(a[i]//400)
    if(a[i] >= 3200):
        cnt += 1
        Flg = True
    
if Flg:
    print(len(set_a)-1, end=" ")
    print(len(set_a)-1+cnt)
else:
    print(len(set_a), end=" ")
    print(len(set_a))