Task: Program Execution
Input (English): 5, 6, ['5989', '93', '8677', '8427', '3031', '4731', 'B', '2673', '6865']
Output (English): 4731, 3031