Task: Program Execution
Input (English): Q, 5667, P, 439, G, 6005, 3957, f, D, 6571, U, M, 2337, 1077
Output (English): 26053