Task: Program Execution
Input (English): S, 1877, v, R, K, Q, 7461, 499, v, 6581, 9129, 5907, 5561, K, 2063, w, a, 2833, U, C
Output (English): 19, 1877, 22, 18, 11, 17, 7461, 499, 22, 6581, 9129, 5907, 5561, 11, 2063, 23, 1, 2833, 21, 3