Task: Program Execution
Input (English): 3, 10, ['3071', '29', 'g', '6047', 'i', 'y', '4145', '8051', 'a', '8641', 'U', '4789', 'Q', '6877', '5485', 'N', 'L', 'v', '4611', 'a', 'm', 'f', 'n']
Output (English): g, Q, n