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: Brent went scuba diving one afternoon with his friend. 
 Initial Context: They jumped in the water and started to descend. 
 Original Ending: Half an hour later Brent noticed his oxygen was almost depleted. His friend handed him a can of spare air. Brent safely ascended back to the boat and got more oxygen. 
 Counterfactual Context: His friend strayed and couldn't be found.

Ex Output:
Half an hour later Brent noticed his oxygen was almost depleted. His friend handed him a can of spare air when he showed up out of nowhere. Brent safely ascended back to the boat and got more oxygen. 


Ex Input:
Premise: Peter was meeting his girlfriend for Valentine's. 
 Initial Context: He had an entire date planned out for them. 
 Original Ending: He took her to the movies and then to a restaurant. When they were done eating he got down on a knee and proposed. She said yes and they began to plan their wedding. 
 Counterfactual Context: He forgot to plan a date and bring a ring.

Ex Output:
He took her to the movies and then to a restaurant. When they were done eating he paid the bill. She said thank you and they began to plan their next date. 


Ex Input:
Premise: Laurence grabbed an apple from the refrigerator. 
 Initial Context: He bit into it and then spit it back out. 
 Original Ending: The apple was rotten. Laurence looked in the fridge and realized everything was expired. Laurence decided to clean out his refrigerator more often. 
 Counterfactual Context: He ate the apple quickly.

Ex Output:

The apple was delicious. Laurence looked in the fridge and realized he had no more apples. Laurence decided to buy more apples. 


