Task: Program Execution
Input (English): 3, 3, ['509', '3831', '4305']
Output (English): 4305