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