Task: Program Execution
Input (English): 7, 11, ['2407', '7371', 'm', '1643', 'W', '2507', 'N', '4585', '1799', '9949', 'D', '3999', 'D']
Output (English): N, 4585, 1799, 9949, D