Task: Program Execution
Input (English): 3, 6, ['e', 'J', 'E', '8195', '5461', '1435', '1']
Output (English): 1435, 5461, 8195, E