Task: Program Execution
Input (English): 6, 11, ['R', 'J', '2997', '5861', '791', 'P', 'r', '1541', '1839', 'S', 'z', 'i']
Output (English): Pr15411839Sz