Integral polynomials with small discriminants and resultants