Task: Program Execution
Input (English): q, q, x, 381, z, b, 395
Output (English): 1, 3, 5, 8, 9