# coding: utf-8

n = int(input().rstrip())

score_list = [int(i) for i in input().rstrip().split()]

under3200 = set([int(i/400) for i in score_list if i < 3200])
over3200 = [i for i in score_list if i >= 3200]

minColor = max(0, len(under3200))
maxColor = len(under3200) + len(over3200)

print("{} {}".format(minColor, maxColor))
