Task: Program Execution
Input (English): 2, 2, ['M', '7489', '6685']
Output (English): 7489