Task: Program Execution
Input (English): 3, 3, ['U', '6111', '8955', 'B']
Output (English): 8955