Task: Program Execution
Input (English): 3, ['1161', 'J', 'u', '7923', 'I', '5547', 'Q', 'J', '777', 'U']
Output (English): 1161, 7923, Q, U