Task: Program Execution
Input (English): R X 5583 q b E H u 8701 143 9261 8131 6371 d 8923 9087 H 2015 4389 3991 3177 4115 w 303 9279 M S l c 8357 P
Output (English): 1, 2, 4, 5, 6, 7, 8, 14, 17, 23, 26, 27, 28, 29, 31