Task: Program Execution
Input (English): 2, 17, ['W', '5345', 'm', '3313', 'F', '1033', '5779', '4135', '4031', 'h', '4267', '787', 'o', 'R', '9015', 'i', '6521', 'J']
Output (English): 6521i9015Ro7874267h4031413557791033F3313m5345