Task: Program Execution
Input (English): 9975 H Y 5633 D d 9871 1945 4625 d n U 2373 65 C 9531 y 9151 6867 7775 8709 K p 2929 H 5305 8729 4557 w 2207 m 1549 3559 7027 7067 9397 5891 V 5461 X
Output (English): 1, 4, 7, 8, 9, 13, 14, 16, 18, 19, 20, 21, 24, 26, 27, 28, 30, 32, 33, 34, 35, 36, 37, 39