Task: Program Execution
Input (English): K, m, 5787, 9937, p, 9317, y, 4745, 761, g, b
Output (English): 11, 13, 5787, 9937, 16, 9317, 25, 4745, 761, 7, 2