Task: Program Execution
Input (English): 3, ['4785', '2971', '2877', '1207', '4359', '4109', 'j', 'B', 'K', '6989', '3367', 'e', 'j', '9061', 'r', 'X', 'R']
Output (English): 4785, 2971, 2877