Task: Program Execution
Input (English): 3, 5, ['F', '383', '8797', 'w', '783', 'J', '1239']
Output (English): 783, w, 8797