Task: Program Execution
Input (English): 6, 9, ['3945', '2471', 'X', '3883', 'w', '315', 'Z', '7385', '2891']
Output (English): 2891, 7385, Z, 315