出処進退(しゅっしょしんたい)

Japanese vocabulary

Meaning: staying in one's position or resigning; course of action; move

See it used in real works