Task: Program Execution
Input (English): 9371 J N 9027 r 1213 9719 6057 3285 5711 8659 M W L P 8487 Y Q g 1185 G p 6525 c s 8259 y o 1615 7839 3487 1565 m i
Output (English): 9371, 10, 14, 9027, 18, 1213, 9719, 6057, 3285, 5711, 8659, 13, 23, 12, 16, 8487, 25, 17, 7, 1185, 7, 16, 6525, 3, 19, 8259, 25, 15, 1615, 7839, 3487, 1565, 13, 9