Task: Program Execution
Input (English): L, q, 3211, 5395, R, 9715, 1681, 8237, 6471, 4459, p, Q, n, V, 351, O
Output (English): 12, 17, 3211, 5395, 18, 9715, 1681, 8237, 6471, 4459, 16, 17, 14, 22, 351, 15