【suí fēng dǎo duò】

  1. to trim one's sails with the wind
  2. to adopt different attitude depending on the circumstances (idiom)