Task: Program Execution
Input (English): g 6415 P S 9527 1483 W B B 7627 1917 x n f 8461 T 3671 h E 1517 3129 K X 5603 Q b a 3251
Output (English): 7, 6415, 16, 19, 9527, 1483, 23, 2, 2, 7627, 1917, 24, 14, 6, 8461, 20, 3671, 8, 5, 1517, 3129, 11, 24, 5603, 17, 2, 1, 3251