Task: Program Execution
Input (English): d, 335, 23, 461, 497, p, 313
Output (English): 1, 2, 3, 4, 5, 6, 7, 9