The president said neither country has been ‘good to us on trade’ and the U.S. did not need their products