Task: Program Execution
Input (English): 1629 W 573 597 J H 7471 h 9789 41 8087 2165 x 1203 8075 g j Y 3107 9453 6653 4585 1513 C 1553 9579 E 5641 5387 G J r Q 4053 U 5525 G h 5797 5163
Output (English): 1, 3, 4, 7, 9, 10, 11, 12, 14, 15, 19, 20, 21, 22, 23, 25, 26, 28, 29, 34, 36, 39, 40