Task: Program Execution
Input (English): 7757, b, 1917, l, c, 1945, T, 2211, r, 8029, K, 8531, r, W, 2713, 1817, w, t, 6047, 5081, 8087, N, L, 5053
Output (English): 7757, 2, 1917, 12, 3, 1945, 20, 2211, 18, 8029, 11, 8531, 18, 23, 2713, 1817, 23, 20, 6047, 5081, 8087, 14, 12, 5053