Task: Program Execution
Input (English): 3215 m 9215 7481 I D y 3225 867 i 1961 9871 5993 X S o 4009 841 P v 4327 381 X 9665 S 2847 1941 D 9647 N 6949
Output (English): 1, 3, 4, 8, 9, 11, 12, 13, 17, 18, 21, 22, 24, 26, 27, 29, 31