Task: Program Execution
Input (English): 2943 i 6673 4837 B Q U 5367 5219 R O g 7049 b K K 9259 3551 i 3411 663 b q 4581 m 687 6047 653 5109 h
Output (English): 1, 3, 4, 8, 9, 13, 17, 18, 20, 21, 24, 26, 27, 28, 29