Task: Program Execution
Input (English): 9, 11, ['4001', '9603', '2251', 'S', 'Q', 'w', '1629', '5987', '8881', '1227', '3171', '6207']
Output (English): 3171, 1227, 8881