Task: Program Execution
Input (English): 2, 5, ['x', '3879', '8389', 'L', '1249', 'g', '9437', '3277']
Output (English): 1249, L, 8389, 3879