Task: Program Execution
Input (English): 3, 3, ['B', '2475', 'H', 'w', '5961']
Output (English): 0