Task: Program Execution
Input (English): h J M 331 R 7847 9163 1601 2469 9257 6205 3707 1603 O 1415 4213 8995 6129 Q F A 3907 C o 6529 9327 4969 2163 z l 8997 S 8963 4323 z z Q 2531 7521 3539
Output (English): 4, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 22, 25, 26, 27, 28, 31, 33, 34, 38, 39, 40