yí​chuán​jiù​kàn

to adapt to circumstances