Task: Program Execution
Input (English): 3, ['2583', 'l', '9375', '1827', 'M', '9477', '3521', 'D', '7665', '4593', 'A', 'X']
Output (English): 2583, 1827, 3521, 4593