Task: Program Execution
Input (English): 1785 L 3163 u c r 1573 8129 w X 789 n x K K H 8985 4147 X O 327 4585 O n 4317 o 4351 9859
Output (English): 1785, 12, 3163, 21, 3, 18, 1573, 8129, 23, 24, 789, 14, 24, 11, 11, 8, 8985, 4147, 24, 15, 327, 4585, 15, 14, 4317, 15, 4351, 9859