Task: Program Execution
Input (English): 4, 5, ['1797', 'p', '3921', 'U', 'E', '4707', '4587', 'g']
Output (English): UE