Task: Program Execution
Input (English): 4, 6, ['p', '1353', 'W', 'Z', '4941', '2971', '5409', '1037']
Output (English): 2971, 4941, Z