Task: Program Execution
Input (English): 2, 2, ['2223', '3409', '5269', '9865', 'M']
Output (English): 3409