from collections import Counter
n = int(input())
a = [min(x//400, 8) for x in map(int, input().split())]
a = Counter(a)

if a[8] != 0:
    min_a = max([len(a)-1, 1])
else:
    min_a = len(a)

max_a = min([min_a+a[8], 8])
print(min_a, max_a)