Task: Program Execution
Input (English): 9605, k, 2407, 5927, 1035, J, T, 2995, a, 1761
Output (English): 1, 3, 4, 5, 8, 10