Task: Program Execution
Input (English): 8949, Q, K, 7585, N, 1603, 2131, O, T, I
Output (English): 20268