Task: Program Execution
Input (English): 2, 12, ['5857', '6775', '9419', '9705', 'n', '6525', '9823', '4123', 'Z', '6231', 'B', 'D', 'j', 'W', '1317', 'z', '9659', '4861', 'j', 'v']
Output (English): 52601