Task: Program Execution
Input (English): 167, v
Output (English): 1, 6, 7