Task: Program Execution
Input (English): 2, 3, ['3335', '3451', 'f', 'M']
Output (English): 3451