Task: Program Execution
Input (English): U D k 5587 695 h 9819 7833 X 7897 D o 5219 d 2329 4931 q 7625 x m 4461 4091 9689 X w 6167 4811 2221 S X 4343 a H z 9395 1345 Q N
Output (English): 1, 2, 3, 6, 9, 11, 12, 14, 17, 19, 20, 24, 25, 29, 30, 32, 33, 34, 37, 38