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: Carl received an inheritance when his father passed away. 
 Initial Context: He wanted to invest some of the money. 
 Original Ending: Carl researched many stocks and decided where to invest his money. He chose to help one of his family businesses. Carl made a large investment and secured his family's future. 
 Counterfactual Context: He wanted to invest some of the money into buying a house.

Ex Output:
Carl researched many real estate agents and decided which one to call. He chose to use an agent that looked the friendliest. Carl bought a large house and secured his family's future. 


Ex Input:
Premise: The man took a risk. 
 Initial Context: It turned out well. 
 Original Ending: He took more risks in the future. They continued to go well. He called himself lucky. 
 Counterfactual Context: He got burned.

Ex Output:
He still took more risks in the future. They all turned out well. He called himself lucky. 


Ex Input:
Premise: The writer isolated himself. 
 Initial Context: He tried to write a story. 
 Original Ending: His wife interrupted him. At first he felt upset. Then he wrote it into his story. 
 Counterfactual Context: He tried to write a story about his divorce.

Ex Output:

Hi ex interrupted him to ask if they can get back together. At first he felt upset. Then he wrote it into his story. 


