Task: Program Execution
Input (English): 3, 5, ['9801', '6309', '4085', 'U', 'B']
Output (English): BU4085