Task: Program Execution
Input (English): 4, 4, ['M', 'p', 'D', '5689', '7737']
Output (English): 5689