n = int(input())
a = list(map(int, input().split()))
s = list(set(x//400 for x in a))

normal = [x for x in a if x < 3200]
strong = [x for x in a if x >= 3200]

normal_s = set(x // 400 for x in normal)


print(len(normal_s),len(normal_s)+len(strong))