# coding: utf-8
# Your code here!

N = int(input())
arr = list(map(int, input().split()))
div_arr = list(map(lambda x: x // 400, arr))
sol_arr = [x for x in div_arr if x < 8]
free_len = len(div_arr) - len(sol_arr)
clr_kind = len(set(sol_arr))
min_num = clr_kind
max_num = clr_kind + free_len
print(min_num, max_num)