通权达变

tōng quán dá biàn

to adapt to circumstances

tōng

to go through

quán

authority

to attain

biàn

to change