Task: Program Execution
Input (English): 6, 10, ['1785', '4445', '1295', '4493', 'R', '5609', '5105', 'h', '8357', 'l']
Output (English): 5609, 5105, h, 8357, l