Task: Program Execution
Input (English): N, 9901, 7929, 1555, C, j, i, w, x, 6551, 1289, S, 275
Output (English): 1, 5, 6, 7, 8, 9, 12