Task: Program Execution
Input (English): 9851 H O 5619 J m 5925 d 6687 9135 f 8883 i 5011 7763 d H 7429 5103 9857 3495 8185 1273 1271 z 5315 8871 5751 P j
Output (English): 1, 4, 7, 9, 10, 12, 14, 15, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28