Task: Program Execution
Input (English): 4, 10, ['3859', 'N', '779', 'c', 'g', 'O', '5659', 'g', '3847', 'W', '3471', 'L']
Output (English): W, 3847, g, 5659, O, g, c