Task: Program Execution
Input (English): 4, ['8447', '6647', '2993', '6169', '1007', 'w', '5807', '5749', '1103', 'D', 'Q', 'E', 'J', 'M', 'Q', 'd']
Output (English): 8447, 1007, 1103, J