Task: Program Execution
Input (English): 8, 10, ['v', '4689', '5619', '5171', 'Q', '4953', '9843', '4271', 'h', '2493', 'N', '3015', 'M', '9581', '8669', 'b']
Output (English): 6764