Task: Program Execution
Input (English): P W 379 B X W w 3979 3151 N B 7249 Q L 7501 6545 389 w 411 t D X 4989 5219 m 1991 8835 S 8055
Output (English): 1, 2, 4, 5, 6, 7, 10, 11, 13, 14, 18, 20, 21, 22, 25, 28