Task: Program Execution
Input (English): w, 439, b, w, w, z, 303, g, 165, 311
Output (English): 0, 1, 3, 4, 5, 6, 9