Task: Program Execution
Input (English): 6, 7, ['247', '487', 'J', '5987', '973', '8535', '8199']
Output (English): 8199, 8535