def main():
    N = int(input())
    A = list(map(int, input().split()))

    R = [1]
    for i in range(1, 8):
        R.append(400 * i)
    
    st = set()
    free = 0
    for ai in A:
        if ai >= 3200:
            free += 1
            continue
        for ri in R[::-1]:
            if ai >= ri:
                st.add(ri)
                break
    # print(st)
    # print(free)
    print(len(st), len(st) + free)

if __name__ == "__main__":
    main()