Task: Program Execution
Input (English): 4, ['1849', 'w', 'T', 'J', '3943', 'Y', 'O', 'D']
Output (English): 1849, w, T, J