Task: Program Execution
Input (English): c, 7161, D, r, 3173, M, 6613, k, d, 7035, 2587, X, X
Output (English): 2, 5, 7, 10, 11