Task: Program Execution
Input (English): q, R, 8877, 47, 755, J, I, n, 1795, e, I, n
Output (English): 1, 2, 6, 7, 8, 10, 11, 12