Task: Program Execution
Input (English): A, B, 2007, K, 1621, R, 6143, i, 8235, 6447, v, q
Output (English): 24453