Task: Program Execution
Input (English): 5007 W 8617 597 e k r 3207 X B 9687 e 8935 s u 4705 5053 Q 7903 1981 9603 4233 D 6123 7907 6187 M X P 2197 8377 9715 5059 H N 8677 3835 7827 351
Output (English): 2, 5, 6, 7, 9, 10, 12, 14, 15, 18, 23, 27, 28, 29, 34, 35