Task: Program Execution
Input (English): f M O E 8461 M L 2791 9837 7275 2251 n 885 5065 T 1397 9769 k 1425 7433 r 2231 8559 2649 f J S F 7715 E 4579 117 2659 A 2857 J
Output (English): 6, 13, 15, 5, 8461, 13, 12, 2791, 9837, 7275, 2251, 14, 885, 5065, 20, 1397, 9769, 11, 1425, 7433, 18, 2231, 8559, 2649, 6, 10, 19, 6, 7715, 5, 4579, 117, 2659, 1, 2857, 10