N = int(input(()))
A = list(map(int, input().split()))

hist = [0]*9
for i in A:
    hist[i//400] += 1

ansmin = 0
for i in hist[:-1]:
    if i > 0:
        ansmin += 1
print("{} {}".format(ansmin, ansmin+hist[-1]))