Task: Program Execution
Input (English): 3, 4, ['L', '6727', 'N', '4361']
Output (English): 4361