Task: Program Execution
Input (English): 5923 S 5365 B 1181 3669 K O 3399 N 9845 8579 t n W S O 1871 1889 9165 m u 8001 1523 8777 f a 6949 w 6281 2843 5025 F M c q W
Output (English): 5923, 19, 5365, 2, 1181, 3669, 11, 15, 3399, 14, 9845, 8579, 20, 14, 23, 19, 15, 1871, 1889, 9165, 13, 21, 8001, 1523, 8777, 6, 1, 6949, 23, 6281, 2843, 5025, 6, 13, 3, 17, 23