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

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! 


Input: Consider Input: Premise: John was awakened by a thud inside his bedroom. 
 Initial Context: He glanced at the clock to learn it was the middle of the night. 
 Original Ending: John heard the thud again, this time coming from beneath his bed. John quickly rolled off the bed and looked under the bed. There John found his little brother, attempting to scare him. 
 Counterfactual Context: After glancing at the clock he figured out it was his mother waking him up for school.

Output: John heard the thud again, this time coming from next to his bed. John quickly rolled off the bed and looked up. There John saw his mother glaring at him. 


Input: Consider Input: Premise: The baby managed to get out of the tent. 
 Initial Context: He ended up falling into the water. 
 Original Ending: Although he was able to float, the current pushed him. Dan tried running after him before he drowned. He managed to pull the baby out within minutes. 
 Counterfactual Context: He fell down on the ground.


Output: Although he was able to stand he got bruises. Dan tried running after him before he cries. He managed to comfort the baby within minutes. 


