Task: Program Execution
Input (English): 5907, 509, d, 8947, i, 2539, 7059, N, 5201, 3373, I, M, a, 7427, 3259, m, 6247, 4645, H
Output (English): 5907, 509, 4, 8947, 9, 2539, 7059, 14, 5201, 3373, 9, 13, 1, 7427, 3259, 13, 6247, 4645, 8