Task: Program Execution
Input (English): G, 5027, B, Q, x, D, 7719, j
Output (English): 12746