HOC

[d'erzhat' nos po v'etru]

To keep one's nose to the wind.

To adapt to circumstances, unscrupulously altering one's convictions or behaviour; to adjust to the situation.

Cf. To trim one's sails to the wind.