Task: Program Execution
Input (English): 3, 4, ['m', 'B', '6985', '9641', '9805', '1919', '3571', '6531', 'P', 'U', '5297']
Output (English): 9641, 6985