Task: Program Execution
Input (English): 3, 4, ['4907', 'B', '1381', '1035', 'h', '7589', '7899', '5009']
Output (English): 1035, 1381