Task: Program Execution
Input (English): 2, 2, ['8743', '7959', '6353', '1977']
Output (English): 7959