Task: Program Execution
Input (English): 2, 3, ['r', 'r', 'U', '4513', 'u']
Output (English): U, r