Task: Program Execution
Input (English): 7, 12, ['n', 'R', '7139', 'C', 'N', 'C', 'X', '4775', '9577', '8137', '8911', 'K', 'q', '4887', 'g', 'B']
Output (English): K, 8911, 8137, 9577, 4775, X