Task: Program Execution
Input (English): 5, 18, ['e', '7729', '515', '7553', 'g', 'n', 'O', '3877', 'Z', 'F', 'W', 'c', '6491', '3711', 'D', '1121', 'b', '4131', '8945']
Output (English): g, n, O, 3877, Z, F, W, c, 6491, 3711, D, 1121, b, 4131