Task: Program Execution
Input (English): 2, 2, ['5777', '9661', '6397']
Output (English): 1669