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

b = 0
for i in range(n):
    a[i] = a[i]//400
    if a[i] > 7:
        b += 1

c = 0
for i in range(8):
    if i in a:
        c += 1

print(max(1, c), min(8, c+b))
