Task: Program Execution
Input (English): W, Z, 3975, Q, I, E, v, D, 8523, T, T, p, i, k, v, 3345, 4097, 5235
Output (English): 3, 9, 16, 17, 18