n = int(input())
list_a = list(map(int, input().split()))
dict_a = {}
for number in list_a:
    try:
        dict_a[number//400] += 1
    except KeyError:
        dict_a[number//400] = 1
count = 0
count_niji = 0
for key,value in dict_a.items():
    if key < 8:
        count += 1
    else:
        count_niji += value
if count == 0:
    print(1,1)
else:
    print(count,count + count_niji)
