Task: Program Execution
Input (English): 3, 6, ['p', '959', 'd', '2151', '1861', '2699', '9801']
Output (English): 2699, 1861, 2151, d