Task: Program Execution
Input (English): 3, 5, ['i', 'e', '6583', '313', '5511']
Output (English): 12407