N = int(input())
a = list(map(int, input().split()))
rate = [399+(400)*i for i in range(8)]
rate = rate + [4801]
len_ = len(rate)
count = [0] * len_
for i in range(N):
    for j in range(len_):
        if a[i] <= rate[j]:
            count[j] += 1
            break
colors = 0
for i in range(len_-1):
    if count[i] > 0:
        colors += 1
print(colors, colors+count[-1])
