n = int(input())
col = [0] * 9
a = list(map(int, input().split()))
mi = 0
for i in a:
    if i < 400:
        col[0] += 1
    elif i < 800:
        col[1] += 1
    elif i < 1200:
        col[2] += 1
    elif i < 1600:
        col[3] += 1
    elif i < 2000:
        col[4] += 1
    elif i < 2400:
        col[5] += 1
    elif i < 2800:
        col[6] += 1
    elif i < 3200:
        col[7] += 1
    else:
        col[8] += 1
for h in col[:-1]:
    mi += 1 if h else 0
print(max(mi, 1), min(8, mi + col[-1]))