Task: Program Execution
Input (English): 1941, 9803, 5975, 7661, 1583, 4849, P, C
Output (English): 1, 2, 3, 4, 5, 6