Task: Program Execution
Input (English): 3, 7, ['X', '1265', '4971', 'l', '8825', 'z', '9561', '239', '9131', '6841', '487', 'O', '4605', '6529', 'f', '4067', '5269', '4215']
Output (English): 4971, 6841, 5269