Task: Program Execution
Input (English): 5, 7, ['O', 'w', 'x', '1407', '2741', '5911', '1031']
Output (English): 1031, 5911, 2741