Task: Program Execution
Input (English): R S U g 4805 1947 f 1675 A O 8633 T O h 4217 129 w 6977 B w x 9095 P 7569 8653 27 t H 417
Output (English): 18, 19, 21, 7, 4805, 1947, 6, 1675, 1, 15, 8633, 20, 15, 8, 4217, 129, 23, 6977, 2, 23, 24, 9095, 16, 7569, 8653, 27, 20, 8, 417