Task: Program Execution
Input (English): 3, ['3971', 'p', '2941', '2557', 'Y', 'I', '1285', 'L', 'R', '2369', 'b']
Output (English): 3971, 2557, 1285, 2369