Task: Program Execution
Input (English): N, a, 9629, 3337, 2761, 7847, 8365, 8387, Z, G, h, Z
Output (English): 1, 2, 9, 10, 11, 12