Task: Program Execution
Input (English): Q, 6217, e, R, 7009, 137, v, 957, F, 9479, K, 7313, F, U, 2557, g, J, P, 3977
Output (English): 37646