N=int(input())
a_n=[]
a2_n=[]
a_n = input().split(" ")
count = 0

a_n.sort()
for i in range(N):
    if int(a_n[i])/400 < 8:
         a2_n.append(int(a_n[i])/400)
    else:
        count += 1
print(a2_n)
n_min = len(set(a2_n))
if n_min+count > 8:
    n_max=7
else:
    n_max = n_min+count

print(str(n_min)+" "+str(n_max))