Task: Program Execution
Input (English): v, 3151, 753, 3423, 6801, 3853, n, S, q, 9577, 5851, T
Output (English): 1, 7, 8, 9, 12