Task: Program Execution
Input (English): 1, 3, ['2277', '8665', 'p']
Output (English): 10942