Task: Program Execution
Input (English): 3109 K 107 1435 7667 9755 n 8775 W 9063 T 8121 i 97 h 6837 b h M 4543 9083 b 3905 1597 j M 2971 X
Output (English): 3109, 11, 107, 1435, 7667, 9755, 14, 8775, 23, 9063, 20, 8121, 9, 97, 8, 6837, 2, 8, 13, 4543, 9083, 2, 3905, 1597, 10, 13, 2971, 24