Task: Program Execution
Input (English): 423, 81, 39, w, q, w
Output (English): 1, 2, 3, 4, 8, 9