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


def main():
    import math
    import collections
    import itertools

    n = int(input())
    as_ = list(map(int, input().split()))
    colors = [a // 400 for a in as_ if a <= 3199]
    free_num = len([a for a in as_ if a >= 3200])

    if free_num == 0:
        num_color = len(set(colors))
        print(num_color, num_color)
    else:
        num_color = len(set(colors))
        max_types = num_color + free_num
        print(num_color, max_types)

if __name__ == '__main__':
    main()