Task: Program Execution
Input (English): u, 7037, n, 8121, 4611, 8897, 4247, u, w, a, N, 4153, 5099, 605, 4785, 8407, 6059, Q, 6395, 8267, S
Output (English): 21, 7037, 14, 8121, 4611, 8897, 4247, 21, 23, 1, 14, 4153, 5099, 605, 4785, 8407, 6059, 17, 6395, 8267, 19