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

a.sort()
color = [-1] * N
for i in range(N):
    if a[i] < 400:
        color[i] = 1
    elif a[i] < 800:
        color[i] = 2
    elif a[i] < 1200:
        color[i] = 3
    elif a[i] < 1600:
        color[i] = 4
    elif a[i] < 2000:
        color[i] = 5
    elif a[i] < 2400:
        color[i] = 6
    elif a[i] < 2800:
        color[i] = 7
    elif a[i] < 3200:
        color[i] = 8
    else:
        color[i] = 9

A = set(color)
if 9 in A:
    A.remove(9)

print(len(A), len(A) + color.count(9))
