kàn​cài​chī​fàn​liàng​tǐ​cái​yī

to act according to circumstances