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

a_n.sort()
for i in range(N):
    if int(a_n[i])/400 < 8:
         a_n[i] = int(a_n[i])/400
    else:
        count += 1

num = len(set(a_n))

print(str(num)+" "+str(num+count))