Task: Program Execution
Input (English): 1, 4, ['9589', 'r', '963', '8323', '1985', '8711', '1443', 'X']
Output (English): 9589, 1985