Task: Program Execution
Input (English): 6, ['5467', '6151', 's', '7509', 'N', 'Q', '4357', '4347', '8301', '809', '827', '3985', '3313', 'd']
Output (English): 4357, 4347, 8301, 809, 827, 3985, 3313, d