Task: Program Execution
Input (English): 3, 5, ['2955', 'd', '8739', 'Y', '9741', 'Q', 'v', '7949']
Output (English): 9741, Y, 8739