Task: Program Execution
Input (English): P H 7857 723 i x 4511 2079 Q 3131 597 1479 Q 7153 N M v 5869 s 3403 6227 P 4325 f T 6211 T 4569 8133
Output (English): 3, 4, 7, 8, 10, 11, 12, 14, 18, 20, 21, 23, 26, 28, 29