Task: Program Execution
Input (English): 4, 4, ['d', '8661', '1275', '5371']
Output (English): 5371