Task: Program Execution
Input (English): Q, O, 8405, G, 6885
Output (English): 15290