Task: Program Execution
Input (English): 1, 1, ['2585', 'G']
Output (English): 5852