Task: Program Execution
Input (English): 4, 7, ['U', 'q', '7147', '3075', '7959', 'V', '7977', '5151', 'N', '6687', '1867', 'x', 'Z', 'g', '727', '3347', '5617', '8315', '3431', 'D', '351']
Output (English): 3075, 1867, 8315