Task: Program Execution
Input (English): 4, 6, ['765', '8827', 'U', '397', '6947', 'U']
Output (English): U, 6947, 397