Task: Program Execution
Input (English): P, Q, 2893, K, 2149, 3487, J, 4267, 9021
Output (English): 21817