dà​zhàng​fu​néng​qū​néng​shēn

to be flexible as the situation requires