Task: Program Execution
Input (English): 2, 5, ['317', 'P', '5913', '2437', 'l']
Output (English): 8350