Task: Program Execution
Input (English): 2, ['2361', '7081', '2787', 'q']
Output (English): 2361, 7081