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