Task: Program Execution
Input (English): 4, 2, ['h', '9781', '217', '8571', 'c', 'f', 'M', 'C', '8929', 'Z', '7427', 'Q', '9733', '5229', 'S', 'n', 'E', '2539', '757', '2251', 'U', '1213', 'T', 'M', '1145', '3971']
Output (English): 8571, f, C, Z, Q, 5229, n, 2539, 2251, 1213, M, 3971