n = int(input())
a = list(map(int, input().split()))
r = [0] * 9
for i in a:
    r[i//400] += 1

if sum([1 for i in r[:-1] if i != 0]) == 0:
    print(1, min(8, n))
else:
    mi = sum([1 for i in r[:-1] if i != 0])
    res = 8 - mi
    if res == 0:
        print(mi, mi)
    else:
        if res > r[-1]:
            print(mi, mi+r[-1])
        else:
            print(mi, mi+res)