N = int(input())
a = list(map(lambda x: int(x) // 400, input().split()))
count = 0
col = []

a.sort()

for i in range(N):
    if a[i] not in col and a[i] <= 7:
        col.append(a[i])
    if a[i] > 7:
        for j in range(8):
            if j not in col:
                col.append(j)
                count += 1
                break
print(len(col) - count, len(col))