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: Marshall was nervous about the big test.
Initial Context: He studied everyday for 4 hours.
Original Ending: He got so nervous that he had a panic attack. His friends told him he was smart. That gave him confidence and he passed the test.
Counterfactual Context: He studied everyday for 4 hours and felt very relaxed.

Output: He got up the next morning feeling nervous again. His friends told him he would be fine. That gave him confidence and he passed the test.

Input: Consider Input: Premise: Rachel wanted to make some cookies for her friends.
Initial Context: She got the dough out and put it in the oven.
Original Ending: While she was waiting, she decided to talk in the phone. An hour went by and Rachel smelled smoke. She then immediately looked at the cookies and they were ruined.
Counterfactual Context: She got the dough out and found out it was unusable.

Output: She was disappointed and thought about what to do. An hour went by and she decided to go to the store. She decided to just buy cookies for her friends.

Input: Consider Input: Premise: Lisa had no clean clothes so she decided to do laundry.
Initial Context: She piled all of her whites into the washer.
Original Ending: When the buzzer dinged, she opened the washer and saw pink! A red sock had been hidden in the load and dyed the clothes. Now all of Lisa's clothes are ruined.
Counterfactual Context: She piled all of her dark clothes into the washer.
Output: When the buzzer dinged, she opened the washer and saw black! A black sock had been hidden in the load and dyed the clothes. Now all of Lisa's clothes are ruined.