Task: Program Execution
Input (English): 6, 15, ['R', '8017', 'J', 'q', 'Z', '8391', 'S', 'i', '9215', '213', 'p', 'Z', 'h', 'f', '7637', '1815']
Output (English): 8391Si9215213pZhf7637