Task: Program Execution
Input (English): 1, 2, ['1091', 'P']
Output (English): 1091