Task: Program Execution
Input (English): 385, 137, 423, w, b, n
Output (English): 1, 2, 3, 4, 5, 7, 8