Task: Program Execution
Input (English): x, 343, 391, 381, q, 317, 403, 89, 271
Output (English): 0, 1, 2, 3, 4, 7, 8, 9