yīn​rén​zhì​yí

to do what is appropriate for each person