Task: Program Execution
Input (English): 5, 10, ['3813', '7291', '249', '4227', '2517', 'T', 'E', 'w', '1409', '4587', '4759', '8075', '3291', 'v']
Output (English): 2517, T, E, w, 1409, 4587