Task: Program Execution
Input (English): T, 8339, z, 8741, I, g, I, Q, r, N
Output (English): 1, 3, 5, 6, 7, 8, 9, 10