Task: Program Execution
Input (English): 23, p, 409, 305, z, q, 295, 391
Output (English): 0, 1, 2, 3, 4, 5, 9