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: Cassidy was at her friend's house sleeping over. 
 Initial Context: Her friend's mom was out drinking with a friend. 
 Original Ending: Late at night the two women came home drunk. Cassidy wasn't used to being around that, and was uncomfortable. She decided to go home right then. 
 Counterfactual Context: Her friend's mom was joining them in the sleep over.

Ex Output:
Late at night t, the mom went out and got drunk. Cassidy wasn't used to being around that when the mom came home and was uncomfortable. She decided to go home right then. 


Ex Input:
Premise: Mike walked downstairs to leave for work. 
 Initial Context: When he opened his front door, a large dog was standing there. 
 Original Ending: The god looked very angry and began to bark at Mike. Mike ran inside and grabbed his bottle of mace. He sprayed the dog who began to whimper and went on his way. 
 Counterfactual Context: When he opened his front door, a large woman was standing there.

Ex Output:
The woman looked very angry and began to yell at Mike. Mike ran inside and grabbed his bottle of mace. He sprayed the woman who ran away. 


Ex Input:
Premise: There was a huge exam for the semester finals. 
 Initial Context: I was nervous and could hardly breathe. 
 Original Ending: The professor told us this exam is worth 90 percent of our grade. When the test began I was actually the first person to complete it. When I got my exam back, I scored very well and I was relieved. 
 Counterfactual Context: I missed class that day and failed.

Ex Output:

The professor told us this exam is worth 90 percent of our grade. When the test began I was actually sleeping. When I was able to retake the final,  I scored very well and I was relieved. 


