Task: Program Execution
Input (English): 3, 3, ['S', '6147', '6585', 'B', '5469']
Output (English): 6585