Task: Program Execution
Input (English): 9961, 5427, H, 6493, S, D, W, a, i, H, 723, 4707, 8901, w, s, N, 7831, 7273, 8967, 4749
Output (English): 9961, 5427, 8, 6493, 19, 4, 23, 1, 9, 8, 723, 4707, 8901, 23, 19, 14, 7831, 7273, 8967, 4749