Task: Program Execution
Input (English): 3791 F 7487 U u 951 z t 119 1191 4779 7409 X 6459 33 69 5685 9519 323 5191 Q t 3583 X 3915 Y 7091 m 5771 7421 t
Output (English): 1, 3, 6, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 23, 25, 27, 29, 30