Task: Program Execution
Input (English): 335, 311, 179, 405, 101, q, n, v, r, 293, x, q
Output (English): 0, 1, 2, 3, 4, 5, 7, 9