Task: Program Execution
Input (English): 7, 9, ['1071', 'A', '1865', 'p', 'f', '413', '2999', '3541', 'x']
Output (English): 2999, 3541, x