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

cnt = [0] * 9

for i in range(N):
    if a[i] >= 3200:
        cnt[8] += 1
    else:
        cnt[ a[i] // 400 ] = 1

subMin = sum(cnt[:-1])
Min = max(sum(cnt[:-1]), 1)
Max = min(subMin + cnt[-1], 8)

print(Min, Max)