import sys
readline = sys.stdin.readline

from collections import Counter


def main():
    N = int(readline())
    A = list(map(lambda x: int(x) // 400, readline().split()))
    B = [b for b in A if b > 7]
    A = set([a for a in A if a <= 7])
    n_min = max(len(A), 1)
    n_max = n_min + len(B)
    print(n_min, n_max)


if __name__ == '__main__':
    main()