N = int(input())
a = list(map(int,input().split()))
li = [""]*N
overrate = 0
for i in range(N):
    if a[i]>=3200:
        overrate += 1
        continue
    else:
        li[i] = a[i]//400
kind = len(list(set(li)))-min(li.count(""),1)
mn = max(1,kind)
mx = min(8,kind+overrate)
print(mn,mx)