Task: Program Execution
Input (English): q, 4785, 6785, U, 9903, 261, A, v, L, 903, R, 9001, 6043, 6967
Output (English): 2, 3, 5, 6, 10, 12, 13, 14