Task: Program Execution
Input (English): p, 319, 143, w, 475, 83, w
Output (English): 1, 3, 4, 5, 7, 8, 9