Task: Program Execution
Input (English): N, R, 3253, N, 727, 9605, e, 7485, M, r, q, T, F, 7655, 7887
Output (English): 1, 2, 4, 7, 9, 10, 11, 12, 13