n = int(input())
a = list(map(int, input().split()))
b=[]
cnt = 0
for i in range(n):
    if a[i]>=3200:
        cnt+=1
    else:
        for j in range(1,9):
            if a[i]<400*j:
                b.append(j)
                break
print(len(set(b)),len(set(b))+cnt)


