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.

Example Input: Premise: Sally's child lost her toy teddy bear at the mall. 
 Initial Context: Sally called the stores in the mall where they visited. 
 Original Ending: One of the stores had the bear. Sally and her child drove to the mall and got the bear. They drove home and had dinner and went to bed. 
 Counterfactual Context: Sally called her mom and told her all about it.
Example Output: Her mom found out that one of the stores had the bear. Sally and her child went to the store and got the bear. They drove home and had dinner and went to bed. 

Example Input: Premise: Sara had to carry her groceries home. 
 Initial Context: When she got home, she realized her cheese was gone. 
 Original Ending: She traced her steps outside. Luckily, she found the cheese down the road. She picked it up and brought it home. 
 Counterfactual Context: She took an uber.
Example Output: She traced her steps outside when she saw that she was missing a bag. Luckily, she found the uber was just down the road. She contacted him about the bag and brought it home. 

Example Input: Premise: Carla stood on the block nervously. 
 Initial Context: It was her first swim meet! 
 Original Ending: She crouched down and dove in when she heard the beep. She swam as quickly as she could. She ended up with a 3rd place medal. 
 Counterfactual Context: Suddenly she lost her footing and fell into the pool.
Example Output:
As she fell in, she heard the beep. She got back out as quickly as she could. She ended up leaving without a medal. 

