Task: Program Execution
Input (English): 8291 m 3361 f S 4239 Q 2905 2111 7565 t e 5295 l G 1501 X 2519 3597 7875 821 9931 n 8711 9447 1217 a Y 8099 h 1173 5329 6609 2279
Output (English): 2, 4, 5, 7, 11, 12, 14, 15, 17, 23, 27, 28, 30