Task: Program Execution
Input (English): 5865 2007 199 5147 M 8397 s 9977 n h T 8745 i O 4845 R 5279 f 8773 S 2045 R s 2871 h 1731 H 8767 5089 6647 7539 Y T A
Output (English): 1, 2, 3, 4, 6, 8, 12, 15, 17, 19, 21, 24, 26, 28, 29, 30, 31