Task: Program Execution
Input (English): 2, ['3999', '8117', '6037', 'Q']
Output (English): 3999, 8117