Language:
Free Online Dictionary|3Dict

随方就圆

Source : CEDICT

to adapt oneself to circumstances (idiom)