def decode(to_be_decoded):
    """
    Decodes a run-length encoded string.

    :param to_be_decoded: run-length encoded string
    :return: run-length decoded string
    """
    to_be_decoded_list = list(to_be_decoded)
    decoded_str_as_list = list()
    num_to_print_as_list = list()
    for c in to_be_decoded_list:
        if c.isdigit():
            num_to_print_as_list.append(c)
        else:
            if len(num_to_print_as_list) > 0:
                num_to_print = int(''.join(num_to_print_as_list))
                append = c * num_to_print
                decoded_str_as_list.append(append)
                num_to_print_as_list = list()
            else:
                decoded_str_as_list.append(c)

    return ''.join(decoded_str_as_list)