Task: Program Execution
Input (English): 5, 9, ['J', 'H', '5171', '6641', 'O', '5083', 'E', '9851', '5107', '9451']
Output (English): 5107, 9851, E, 5083, O