Task: Program Execution
Input (English): 257 J H P h 8623 M V 1997 Q H 9991 2181 8259 1817 9279 7757 R 4323 c 1027 5873 7501 1727 3793 J 6609 F 8465 3363 1411 5445 P 1875
Output (English): 1, 6, 9, 12, 13, 14, 15, 16, 17, 19, 21, 22, 23, 24, 25, 27, 29, 30, 31, 32, 34