Language:
Free Online Dictionary|3Dict

見風使帆

Source : CEDICT

lit. see the wind and set your sails (idiom); fig. to act pragmatically/to be flexible and take advantage of the situation