Task: Program Execution
Input (English): 10, 18, ['5021', 'n', '9663', '4345', '4639', '2851', 'X', '2335', '1869', '6577', 'C', '4079', '809', 'v', 'h', 'Q', '8075', 'e', 'I', '4799', '5535', '3857', 'j']
Output (English): 19540