def print_list(ls):
    max_len = max([len(i) for i in ls])
    num = len(str(len(ls)))
    line = ('-' * ((((2 + num) + 3) + max_len) + 2))
    for i in range(len(ls)):
        print(line)
        print(('| %d | %s ' % ((i + 1), ls[i])))
def print_list(ls):
    max_len = max([len(i) for i in ls])
    num = len(str(len(ls)))
    line = ('-' * ((((2 + num) + 3) + max_len) + 2))
    for i in range(len(ls)):
        print(line)
        print(('| %d | %s ' % ((i + 1), ls[i])))