N = int(input())
rates = [int(i) for i in input().split()]

def get_cols(rates):
    col_flags = [False for _ in range(8)]
    wild_colors = 0
    for rate in rates:
        if rate >= 3200:
            wild_colors += 1
        else:
            col_flags[rate // 400] = True

    decided_cols = col_flags.count(True)
    if decided_cols + wild_colors > 8:
        max_cols = 8
    else:
        max_cols = decided_cols + wild_colors
    
    if decided_cols > 0:
        min_cols = decided_cols
    else:
        min_cols = wild_colors
    return (min_cols, max_cols)

print("{} {}".format(*get_cols(rates)))
