import sys
input = sys.stdin.readline

def main():
    N = int(input())
    a = list(map(int, input().split()))

    rank = [400*(i+1) for i in range(8)] + [10000]
    count = [0] * len(rank)

    for i in range(N):
        for j in range(len(rank)):
            if a[i] < rank[j]:
                count[j] += 1
                break
    ans = 0
    for i in range(len(count)- 1):
        if count[i] > 0:
            ans += 1
    print(ans, ans+count[-1])


if __name__ == "__main__":
    main()