shēn​lì​qiǎn​qì

to adapt to circumstances