Task: Program Execution
Input (English): 2, ['S', 'U', 'U', 'Q', '9851', '3791', '9417', '8549', '4871']
Output (English): S, U