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.

Premise: Dan and his brother Don have always been competitive. 
 Initial Context: Recently there was a marathon occurring in Boston. 
 Original Ending: Dan and Don decided to see who could get the better time. However, during the marathon, Don fell and could not finish the race. Dan decided to help his brother instead of finishing the race. 
 Counterfactual Context: The missed the marathon occurring in Boston.
Dan and Don decided to see if there was another marathon soon. They found one, but Don fell and could not finish the race. Dan decided to help his brother instead of finishing the race. 

Premise: After a semester of hard work, I finally got an A in my math class. 
 Initial Context: I had attended every lecture, no matter how boring it was. 
 Original Ending: I did every homework assignment, even the difficult ones. Although I wanted to quit, I persevered through the class. I'm proud of my grade. 
 Counterfactual Context: I had attended every lecture because I really enjoyed the class.
I did every homework assignment, even the difficult ones I was happy to be in the class and liked it through the end. I'm proud of my grade 

Premise: Katie really wanted to be a cheerleader. 
 Initial Context: She decided to go to the tryouts. 
 Original Ending: When she got to the tryouts she did her routine. She did a backflip and some cheers. The captain agreed to let her on the team. 
 Counterfactual Context: She decided to go flirt with the captain.

The captain was strict and told her she needed to tryout. She did a backflip and some cheers. The captain agreed to let her on the team. 

