Task: Program Execution
Input (English): 5, 6, ['O', 'F', 'x', '7959', '5027', '4231', 'z', '2977', 'N']
Output (English): 5027, 4231