def main():
    is_exist = [False] * 8
    free = 0
    n = int(input())
    A = list(map(int, (input().split())))
    for a in A:
        color = a // 400
        if color >= 8:
            free += 1
        else:
            is_exist[color] = True

    normal_colors = sum(is_exist)
    minimum = normal_colors
    if free > normal_colors:
        minimum += free - normal_colors

    maximum = free + normal_colors
    print(minimum, maximum)


if __name__ == "__main__":
    main()