liàng​tǐ​cái​yī

to act according to actual circumstances