Task: Program Execution
Input (English): q, v, 361, t, a, 403, o, r
Output (English): 0, 1, 3, 4, 6