Task: Program Execution
Input (English): H 7783 4761 M 3645 I 495 3155 1217 s 4347 8683 2753 4443 5941 S 5281 n X 6327 2067 p 5417 4833 O u 2807
Output (English): 8, 7783, 4761, 13, 3645, 9, 495, 3155, 1217, 19, 4347, 8683, 2753, 4443, 5941, 19, 5281, 14, 24, 6327, 2067, 16, 5417, 4833, 15, 21, 2807