Task: Program Execution
Input (English): 4, 4, ['M', '3371', 'v', '6213', 'D', 'z', '2399', 'a', 't']
Output (English): 6213