Task: Program Execution
Input (English): 3, 3, ['2789', '6611', '5143']
Output (English): 5143