Task: Program Execution
Input (English): 3, 10, ['4941', 'C', '2745', 'M', 'm', 'L', 'D', '3457', '7583', 'S', '3649', '3667', '8289', '9709', 'Q']
Output (English): 2745, M, m, L, D, 3457, 7583, S