Task: Program Execution
Input (English): 6583, 5359, N, 2511, 5699, w, M, S, 1233, 1157, 963, 4861, 5289, w, I, J, 53, 9697, Q, y, h, 7053
Output (English): 6583, 5359, 14, 2511, 5699, 23, 13, 19, 1233, 1157, 963, 4861, 5289, 23, 9, 10, 53, 9697, 17, 25, 8, 7053