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: Madison and Ryan are brother and sister.
Initial Context: They love to go dancing every Friday.
Original Ending: Last Friday Madison could not go dancing because she had homework. Next week, she worked hard on Thursday and finished all of her work. She was able to go and dance with her brother that Friday!
Counterfactual Context: They love to do homework every Friday.
Example Output: Last Friday Madison could not do any homework because she was going dancing. Next week, she danced on Thursday. She was able to do homework with her brother that Friday!

Example 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.
Example 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.

Example Input: Premise: Gina's crush Jamie had smiled at her.
Initial Context: It was the first time he had acknowledged her when not in a group.
Original Ending: She sat her desk replaying the moment in her head. She couldn't focus on a thing the teacher was saying. She felt as if she were in the clouds.
Counterfactual Context: It was almost a dream for her when he smiled.
Example Output:
She sat her desk replaying the moment in her head. She couldn't focus on a thing the teacher was saying. She felt as if she were in the clouds from him smiling at her.