Task: Program Execution
Input (English): j, 3001, w, R, 4911, 6295, 7109, D, O, W, Y, 251, b, 9977, 7721, 5571, 7527, w, s, P
Output (English): 1, 3, 4, 8, 9, 10, 11, 13, 18, 19, 20