Task: Program Execution
Input (English): 3, 3, ['3251', '2601', '1975', '233', 'Y', '9805']
Output (English): 1975