Task: Program Execution
Input (English): 2, 3, ['G', '5217', '3515', 'v', 'C']
Output (English): 8732