Task: Program Execution
Input (English): 5, 10, ['1785', 'p', 'b', 'S', 'J', 't', '7155', '9235', '9147', 'f', 'U', '7583', '6057']
Output (English): f, 9147, 9235, 7155, t, J