Task: Program Execution
Input (English): 3, ['w', 'u', '4189', 'X', 'W', 'U']
Output (English): X, W, U