Task: Program Execution
Input (English): 2, 5, ['8583', '9857', 'H', '3215', '6507', 'q', '5895', '9973']
Output (English): 9857, H, 3215, 6507