Task: Program Execution
Input (English): 3, 4, ['L', 'm', 'c', 'N', '5177', '3513', 'D', '7575', '395', 'S']
Output (English): Nc