N = int(input())
a = list(map(int,input().split()))
li = [10**9]*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)))
mn = min(kind-min(overrate,1),8)
mx = min(8,max(kind-1+overrate,1))
print(mn,mx)