from collections import defaultdict
N = int(input())
List = list(map(int,input().split()))
dic = defaultdict(int)
for item in List:
  value = item//400
  if value < 8:
    dic[value] += 1
  else:
    dic[8] += 1
additional = 0
if 8 in dic.keys():
  additional += dic[8]
  del dic[8]
base = len(dic.keys())
Answer = [base,base+additional]
print(*Answer)
