  We demonstrate the different effect of different baryons impurities on the
static properties of nuclei within the framework of the relativistic mean-field
model. Systematic calculations show that $\Lambda_c^+$ and $\Lambda_b$ has the
same attracting role as $\Lambda$ hyperon does in lighter hypernuclei. $\Xi^-$
and $\Xi_c^0$ hyperon has the attracting role only for the protons
distribution, and has a repulsive role for the neutrons distribution. On the
contrary, $\Xi^0$ and $\Xi^+_c$ hyperon attracts surrounding neutrons and
reveals a repulsive force to the protons. We find that the different effect of
different baryons impurities on the nuclear core is due to the different third
component of their isospin.
