

def main():
    num = int(input())
    data = list(map(int, input().split()))

    color = [0 for i in range(9)]
    for i in range(num):
        score = data[i]
        ind = score // 400
        if ind > 8:
            ind = 8
        color[ind] += 1

    now_data = 0
    for i in range(8):
        if color[i]:
            now_data += 1

    min_data = max(1, now_data)
    max_data = min(8, now_data + color[8])
    print(min_data, max_data)





if __name__ == '__main__':
    main()
