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.

Input: Consider Input: Premise: Tommy saw his friend playing with a dog. 
 Initial Context: He decided to ask his mother if he could have a dog too. 
 Original Ending: Tommy's mother and father discussed the idea. After speaking to Tommy about caring for a dog, they adopted a dog. Now Tommy is happy to care for and play with his dog every day. 
 Counterfactual Context: He ran from the dog since he is scared of them.

Output: Tommy's mother and father discussed his problem. After speaking to Tommy about what could be done, they decided to get a therapist. Now Tommy is happy to alleviate his fears and love dogs again. 


Input: Consider Input: Premise: Jeff had a dog for a long time. 
 Initial Context: Jeff was good to it everyday. 
 Original Ending: One day while Jeff went out to feed his dog. He seen his dog laying on the ground. He went over to check to see and his dog was dead. 
 Counterfactual Context: He never let the dog out of his sight.

Output: One day while Jeff went out to feed his dog. He saw his dog laying on the ground. He went over to check to see and his dog was fine because he left him alone for 2 minutes. 


Input: Consider Input: Premise: Frank was on a family trip. 
 Initial Context: They were supposed to arrive at their family's house by dinner. 
 Original Ending: On the highway they hit a huge amount of traffic. It was taking so long. By the time they got out, they were set back hours in their drive. 
 Counterfactual Context: They arrived at the airport after dinner.


Output: There was a delay in their flight. It was taking so long. By the time they got on the plane, they were set back hours in their travel plans. 


