Task: Program Execution
Input (English): 347, 1, r, 487, r, 313, 115, c, p, 235, 43, 391, 99
Output (English): 1, 2, 3, 4, 5, 7, 8, 9