Task: Program Execution
Input (English): Z, 1387, J, 8657, e, k, 1281, c, v, Q, 9113, 4379, e, 7295, 7905, 8551, T
Output (English): 26, 1387, 10, 8657, 5, 11, 1281, 3, 22, 17, 9113, 4379, 5, 7295, 7905, 8551, 20