Task: Program Execution
Input (English): q, 185, 55, 487, s, v
Output (English): 1, 4, 5, 7, 8