Task: Program Execution
Input (English): a, A, 5395, m, b, w, 5737, G, 7527, 8599, O, 4897, 589, d, S, I, w, d, 851
Output (English): 1, 1, 5395, 13, 2, 23, 5737, 7, 7527, 8599, 15, 4897, 589, 4, 19, 9, 23, 4, 851