Task: Program Execution
Input (English): 1, 1, ['6231', '6287', '5639', '2997', 's', '3837']
Output (English): 6231