Task: Program Execution
Input (English): 373, 161, 417, n, q, g, 253, 403, 429, a
Output (English): 0, 1, 2, 3, 4, 5, 6, 7, 9