Task: Program Execution
Input (English): 5947 3549 m J 2193 2177 O L 3343 5173 m 1331 4317 F J 6699 y a 8509 S 3105 41 Y m 4341 M g
Output (English): 3, 4, 7, 8, 11, 14, 15, 17, 18, 20, 23, 24, 26, 27