Task: Program Execution
Input (English): 4, 4, ['6971', '5379', 'p', '2169', '5707', '5511', '7559', '1469', 'Y', 'I', '855', 'B', 'd', '4665', 'o', 'Z', 'P', '7643', 'L', '9771', '7289', '2551', '1161', '6601', '6187', '1951']
Output (English): 2169, 1469, B, Z, 9771, 6601