Task: Program Execution
Input (English): q, z, s, 3165, 8777, L, 8987, 4587, 3859, a, 1195, q
Output (English): 17, 26, 19, 3165, 8777, 12, 8987, 4587, 3859, 1, 1195, 17