Task: Program Execution
Input (English): 4939, 8361, i, Q, W, 141, N, 5709, 7851, 1709, h, B, Y, 5527, V, 7137, 8127, Z, P, E, 7553, R, r, r
Output (English): 4939, 8361, 9, 17, 23, 141, 14, 5709, 7851, 1709, 8, 2, 25, 5527, 22, 7137, 8127, 26, 16, 5, 7553, 18, 18, 18