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: Peter worked as a chef in a restaurant. 
 Initial Context: Peter cut the tip of his finger one day with a sharp blade. 
 Original Ending: The manager sent Peter to get medical help. Peter saw a doctor who tended to Peter's wound. Peter was back to work within a few days. 
 Counterfactual Context: Peter narrowly avoided cutting his finger one day with a sharp blade.

Ex Output:
Not paying attention, five minutes later he did cut his finger and the manager sent Peter to get medical help. Peter saw a doctor who tended to Peter's wound. Peter was back to work within a few days. 


Ex Input:
Premise: Sam saw that his dog was scratching a lot. 
 Initial Context: He took a close look at his dog's coat and saw tiny bugs. 
 Original Ending: He called the vet who prescribed the dog some medication. Sam gave him the dog the medication. A few day later his dog stopped scratching. 
 Counterfactual Context: His dog had eczema.

Ex Output:
He called the vet who prescribed the dog some medication. Sam gave the dog the medication. A few day later his dog stopped scratching. 


Ex Input:
Premise: After months of hard training I was ready for my first boxing match. 
 Initial Context: I was nervous and sweaty with a lot of doubt. 
 Original Ending: The judge called us over and began the match. I was trying my best to stay calm throughout the fight. At the end of the boxing match I KO my opponent and won. 
 Counterfactual Context: I was confident in my ability to win.

Ex Output:

The judge called us over and began the match. I was confident throughout the fight. At the end of the boxing match I KO my opponent and won. 


