Task: Program Execution
Input (English): 3111, S, w, 2713, a, M, T, 6715, Y, 5855, Y, 5879, 7529, 5137, P, W
Output (English): 3111, 19, 23, 2713, 1, 13, 20, 6715, 25, 5855, 25, 5879, 7529, 5137, 16, 23