Task: Program Execution
Input (English): Q, 9395, B, w, l, q, r, 9839, x, G, 5215, 6911, K, D, 8441, 5327, G, J
Output (English): 45128