Task: Program Execution
Input (English): 6, 14, ['Y', 'R', 'M', 'C', '5475', '9585', 'B', '4083', '3123', '523', '675', 'M', '1577', 'A']
Output (English): 9585, B, 4083, 3123, 523, 675, M, 1577, A