Task: Program Execution
Input (English): 3, 3, ['n', '6811', '4867']
Output (English): 4867