Task: Program Execution
Input (English): 2, ['8735', '9657', '4359', 'G', 'Q', '4631', '495', '167', '4863']
Output (English): 8735, 9657