Task: Program Execution
Input (English): 2, 2, ['7527', '1087', '5457', '6307', '3757']
Output (English): 1087