Task: Program Execution
Input (English): 6399 M 3421 6171 Q d 4703 v 8149 w 9985 9095 X 1847 207 X C 3177 V S X W s q a 7375 707 9875 4223 8939 3923 4081 v l 9847 1965 n t
Output (English): 1, 3, 4, 7, 9, 11, 12, 14, 15, 18, 26, 27, 28, 29, 30, 31, 32, 35, 36