Task: Program Execution
Input (English): 8, 10, ['R', '4549', 'O', 'C', 'Z', 'r', 'z', '87', 'R', 'P']
Output (English): PR87