Task: Program Execution
Input (English): v, 115, 471, a, 171
Output (English): 1, 4, 5, 7