Question: What two factors determine whether it is possible to withdraw from a treaty?
Sentence: The possibility of withdrawal depends on the terms of the treaty and its travaux preparatoire.
Answer in sentence: yes