Task: Program Execution
Input (English): N, S, 3473, 2999, U, f, 3021, G, k, 6061, 2165, 7037, a, 1643, 1079, d, 827
Output (English): 3, 4, 7, 10, 11, 12, 14, 15, 17