Task: Program Execution
Input (English): 351, n, 143, 379, v, 3, w
Output (English): 1, 3, 4, 5, 7, 9