Task: Program Execution
Input (English): 4, 10, ['q', '8809', '677', '7141', 'b', '9233', 'D', '8393', 'R', '5243', '5169', '2191', 'N']
Output (English): 5243, R, 8393, D, 9233, b, 7141