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

ans = 0
color = [False] * 8
free = 0
for n in a:
    if n < 400:
        color[0] = True
    elif n < 800:
        color[1] = True
    elif n < 1200:
        color[2] = True
    elif n < 1600:
        color[3] = True
    elif n < 2000:
        color[4] = True
    elif n < 2400:
        color[5] = True
    elif n < 2800:
        color[6] = True
    elif n < 3200:
        color[7] = True
    else:
        free += 1

mini = len([i for i in color if i])
maxi = mini + free
print(mini, maxi)