Task: Program Execution
Input (English): 5, 289, 475, 457, n, 33, w, 387, c, h
Output (English): 2, 3, 4, 5, 7, 8, 9