Task: Program Execution
Input (English): 4, 12, ['9849', 'j', 'Q', 'N', 'v', 'h', '2377', '5993', '5511', '3109', 'u', '5195', 'x', 'y', '9353', 'o']
Output (English): 22185