Task: Program Execution
Input (English): 5, 6, ['5777', '2651', 'q', 'x', '2077', 'N']
Output (English): N7702