见风转舵jiànfēngzhuǎnduò
Meanings
1. lit. see the wind and set the helm (idiom); fig. to act pragmatically
2. to be flexible and take advantage of the situation
Characters used