Task: Program Execution
Input (English): 3, 10, ['2925', 'Y', '4047', 'm', 'V', 'F', '7009', 'G', '975', 'I', 'W', '2529', '1121', '6021', '3667', '121', '1513', '4463', 'V', '147']
Output (English): 4047, 1121