Task: Program Execution
Input (English): 9661, J, A, K, 125, D, 5373, 8095, 997, S
Output (English): 24251