Task: Program Execution
Input (English): 8981 T S C 6477 a M 173 X 5513 P g 379 9121 8455 7513 A K 917 5687 5147 7125 V 7641 R p x i W M l b 4277 H 3563
Output (English): 8981, 20, 19, 3, 6477, 1, 13, 173, 24, 5513, 16, 7, 379, 9121, 8455, 7513, 1, 11, 917, 5687, 5147, 7125, 22, 7641, 18, 16, 24, 9, 23, 13, 12, 2, 4277, 8, 3563