Task: Program Execution
Input (English): n, V, w, s, a, V, k, 4845, w, O, 6471, 3397, S, 3419, 4439, J, Y, 8291, 4419
Output (English): 1, 2, 3, 4, 5, 6, 7, 9, 10, 13, 16, 17