Task: Program Execution
Input (English): 5917, 8987, 3021, L, f, 1989, 8577, 3361, 8767, x, w, 8905, 7341, H
Output (English): 5917, 8987, 3021, 12, 6, 1989, 8577, 3361, 8767, 24, 23, 8905, 7341, 8