Task: Program Execution
Input (English): 3, 5, ['1771', '4073', 'g', 'b', '1417', 'z', '2223', '7171', '1111', '931', 'd', 'd', 'z', 'm', 'N', 'z', 'i']
Output (English): g, 7171, z