Task: Program Execution
Input (English): 8487 c H 4593 J M T X v Q x 3003 6733 6251 v X 6255 H 8569 S 4619 2897 r 3593 S 2099 4599 6181 1865 8625
Output (English): 1, 4, 12, 13, 14, 17, 19, 21, 22, 24, 26, 27, 28, 29, 30