Task: Program Execution
Input (English): 5, ['655', '1711', 'Q', '5743', '6161', 'X', 'P', '957', 'U', '3471']
Output (English): 655, 1711, Q, 5743, 6161