Task: Program Execution
Input (English): K, a, B, 2959, R, 4461, g, 5731, l, 9197
Output (English): 11, 1, 2, 2959, 18, 4461, 7, 5731, 12, 9197