Task: Program Execution
Input (English): 4815, 6601, 5849, 9725, 5193, 1517, 5051, P, 8627, I, 9629, 7627
Output (English): 1, 2, 3, 4, 5, 6, 7, 9, 11, 12