Given a premise, an initial context, an original ending, and a counterfactual context, the task is to generate a new story ending aligned with the counterfactual context and as close to the original ending as possible. Each instance consists of a five-sentence story. The premise is the first sentence of a story, and the second sentence, which is the initial context, provides more information about the story's context and the story's general plot. The original ending is the last three sentences of the story. Also, a counterfactual context is a slight modification to the initial context. You should write a new story ending that edits the original story ending as little as possible to regain coherence with the counterfactual context. To sum up, you should write the last three sentences of a story based on the premise(first sentence) and the counterfactual context(second sentence) of the story.

Ex Input:
Premise: All of the litter of puppies had gone to an new home except one. 
 Initial Context: Because it was the runt of the litter nobody wanted her. 
 Original Ending: The people were trying to give her away outside of the grocery store. Since nobody wanted her a kind woman decided to take the puppy home. Finally the unwanted puppy had a home. 
 Counterfactual Context: Because it was the runt of the litter and had died.

Ex Output:
The people were trying to bury her outside of the grocery store. Since nobody wanted to help a kind woman decided to help. Finally the runt had a grave. 


Ex Input:
Premise: Carlos had always wanted to learn another language. 
 Initial Context: He decided to learn how to speak Thai. 
 Original Ending: It was very difficult at first. Carlos eventually learned more and more words in Thai. He was happy to be learning a new language. 
 Counterfactual Context: He decided to learn how to speak spanish.

Ex Output:
It was very difficult at first. Carlos eventually learned more and more words in Spanish. He was happy to be learning a new language. 


Ex Input:
Premise: Tim was playing pirates with friends. 
 Initial Context: Tim was the captain. 
 Original Ending: When others wanted to be captain, he said no. This made everyone mad. Tim felt bad and decided to let others be captain. 
 Counterfactual Context: Tim was the 1st mate.

Ex Output:

When others wanted to be 1st mate, he said no. This made everyone mad. Tim felt bad and decided to let others be 1st mate. 


