Task: Program Execution
Input (English): y, 331, a, q, n, m, 303, v, a, 109
Output (English): 0, 1, 3, 9