Task: Program Execution
Input (English): 3, 10, ['w', 'J', 't', 'y', 'G', '991', '4223', '7371', 'b', 'K', '9437', 'I']
Output (English): K, b, 7371, 4223, 991, G, y, t