Task: Program Execution
Input (English): v, 197, 7, i, q
Output (English): 1, 7, 9