Task: Program Execution
Input (English): 3583 Y e 511 6987 z 1781 8921 5041 c 7711 8095 2213 M N 7615 8381 F 3441 S 8729 c 5461 j j 4595 6773 9449 6765 555 h 2675 1017 1501
Output (English): 2, 3, 6, 10, 14, 15, 18, 20, 22, 24, 25, 31