Task: Program Execution
Input (English): 2, 3, ['B', '9865', 'G', 'v', '1077']
Output (English): 9865