Task: Program Execution
Input (English): U, 5695, 9793, r, 5629, X, A, 6581, 7957, K
Output (English): 1, 4, 6, 7, 10