from bisect import bisect as bisect

def main():
    score = [1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200]
    M = len(score)
    N = int(input())
    A = [int(x) for x in input().split()]

    colors = set()
    m = 0
    for a in A:
        i = bisect(score, a)
        if i != M:
            colors.add(i)
        elif i == M:
            m += 1
    print(len(colors), len(colors)+m)

main()



