Task: Program Execution
Input (English): 6, 10, ['E', 'p', '4815', '2145', '1567', 'I', 'P', 'U', 'r', 'r', 'T', 'x', '8929', 'D', 'u']
Output (English): rrUPI