
def main():
    N = int(input())
    a_list = list(map(int, input().split()))
    rate_table = [0] * 8
    over = 0

    for a in a_list:
        if a < 3200:
            rate_table[a//400] += 1
        else:
            over += 1
            
    mini = 0
    for r in rate_table:
        mini += 1 if r > 0 else 0

    maxi = min(mini + over, 8)
    
    if over > 0 and mini == 0:
        mini = 1
    print(mini, maxi)


if __name__ == "__main__":
    main()