隨遇而安

Idiom

 * 1) to feel at home wherever one is; to accept the circumstances with good will