n = int(input())
num_list = list(map(int,input().split()))
pros = 0
for i in range(len(num_list)):
    color = num_list[i]//400
    if color < 8:
        num_list[i] = color
    else:
        del(num_list[i])
        pros += 1

min_ans = len(set(num_list))
max_ans = len(set(num_list))+pros
print('{} {}' .format(min_ans,max_ans))