Task: Program Execution
Input (English): q, 9849, d, v, v, W, 8857, 7513, 4769, w, l, r, 6431, V, 9463
Output (English): 2, 7, 8, 9, 13, 15