Task: Program Execution
Input (English): K C 1989 H 555 m H 5853 435 M 2927 7173 4213 x I Q 1369 Z 7673 M 2013 h 5375 6073 2629 h h X 9699 T x 9317 3215
Output (English): 11, 3, 1989, 8, 555, 13, 8, 5853, 435, 13, 2927, 7173, 4213, 24, 9, 17, 1369, 26, 7673, 13, 2013, 8, 5375, 6073, 2629, 8, 8, 24, 9699, 20, 24, 9317, 3215