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

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.

Input: Consider Input: Premise: Nate was riding his bike through the park.
Initial Context: He was listening to his favorite music on his iPod.
Original Ending: He didn't hear a runner jogging near him. He lost control of his bike and fell off. Nate ended up scratching his hand.
Counterfactual Context: He was enjoying the sounds of nature and the people around him.

Output: He heard a runner jogging near him. He kept control of his bike and rode on. Nate didn't end up scratching his hand.

Input: Consider Input: Premise: Amy was outside at the dentist office.
Initial Context: It was 5 o'clock and the doors were locked.
Original Ending: She called them to find out how she would get in the building. She was afraid she missed them when they didn't answer immediately. Finally they answered and told her she was at the wrong door.
Counterfactual Context: Suddenly, the door opened and the dentist walked out.
Output: The door closed behind him and she asked him how she would get in the building. She was afraid he didn't hear her when he didn't answer immediately. Finally he answered and told her she was at the wrong door.