Task: Program Execution
Input (English): 4027, J, 1859, c, Y, W, 1321, M, 1899, i, H, 9987, M, 357, W, 8877, n, X, 863, 6227, 6459, 3017, F, 4103
Output (English): 4027, 10, 1859, 3, 25, 23, 1321, 13, 1899, 9, 8, 9987, 13, 357, 23, 8877, 14, 24, 863, 6227, 6459, 3017, 6, 4103