Task: Program Execution
Input (English): 1, 1, ['2717', '4579', '9991', '5283', '6741', 'P']
Output (English): 2717, 4579, 9991, 5283, 6741, P