TASK DEFINITION: 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.
PROBLEM: Premise: The elections were coming up. 
 Initial Context: Fred couldn't believe a reality star had made it. 
 Original Ending: As a result he started a boycott. Pretty soon he won the elections. Fred was surprised he could not make an impact! 
 Counterfactual Context: Fred couldn't believe he had made it on the ballot.

SOLUTION: As a result his community started a boycott. Pretty soon he won the elections. Fred was surprised he was able to make an impact! 

PROBLEM: Premise: One new Year's, Vicky resolved to build her own home. 
 Initial Context: She bought an acre of land in the country. 
 Original Ending: She packed her things into storage and lived in a tent on her land. Every minute of her spare time was spent working on her house. By the end of summer, she was able to move into her new cabin home. 
 Counterfactual Context: She hired some workers to build her new house on land she bought.

SOLUTION: She packed her things into storage and lived in a tent on the corner of her land while her house was being built. Every minute of her spare time was spent watching the workers working on her house. By the end of summer, she was able to move into her new cabin home. 

PROBLEM: Premise: A few years ago, my wife left town for a few days. 
 Initial Context: While she was gone, I started having terrible headaches. 
 Original Ending: I decided to wait it out until she returned to town. Immediately after she returned, we ended up going to the hospital. I had brain surgery and ended up being glad that I waited for her. 
 Counterfactual Context: While she was gone, I broke my leg.

SOLUTION:
I decided not to tell her until she returned to town. Immediately after she returned, she saw my cast and freaked out. I had a good recovery and was okay, so she forgave me for not telling her. 

