Task: Program Execution
Input (English): M 665 9747 t 7849 221 U 7753 2743 O w 2361 D 7899 K 4929 8967 9447 9025 4209 1499 1201 s 4449 819 2851 z
Output (English): 13, 665, 9747, 20, 7849, 221, 21, 7753, 2743, 15, 23, 2361, 4, 7899, 11, 4929, 8967, 9447, 9025, 4209, 1499, 1201, 19, 4449, 819, 2851, 26