Task: Program Execution
Input (English): 4, 10, ['P', '7659', '2065', '9581', 'B', '5965', 'x', '1225', 'F', '9719', 'v', 'B', 'w', '9705', '435', '9833', '6495', 'i', 'z', '787']
Output (English): 9581, 9705