Task: Program Execution
Input (English): 6845 X T X X M 853 2981 7369 B q Y 9945 I O q 2511 4037 9317 S 4625 s b u H 1879 k 6817 7573 j 2977
Output (English): 2, 3, 4, 5, 6, 10, 11, 12, 14, 15, 16, 20, 22, 23, 24, 25, 27, 30