import sys
input = sys.stdin.readline

def main():
    scores = [i*400 for i in range(1, 8)]
    scores.reverse()

    scores_d = {}
    input()
    god = []
    for a in map(int,input().split()):
        if a >= 3200:
            god.append(a)
        for i in scores:
            if a >= i:
                scores_d[i] = 1
                break

    counts = sum(scores_d.values())
    print(counts, counts + min(len(god), 8))

main()