def input():
    import sys
    return sys.stdin.readline().rstrip()


def main():
    import math
    import collections
    import itertools

    n = int(input())
    as_ = [a // 400 for a in map(int, input().split())]
    over_8 = [color for color in as_ if color >= 8]
    free_num = len(over_8)
    if free_num == 0:
        num_color = len(set(as_))
        print(num_color, num_color)
    else:
        num_color = len(set(as_)) - 1
        max_types = num_color + free_num
        print(num_color, max_types)

if __name__ == '__main__':
    main()