TASK DEFINITION: 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.
PROBLEM: Premise: Carl thought he was smarter than all his friends.
Initial Context: He challenged them all to games of chess.
Original Ending: Most of them beat Carl. The ones that didn't came close. Carl felt more humble and respectful afterward.
Counterfactual Context: Carl's friends stopped talking to him because he was stuck up.

SOLUTION: Most of them hated Carl. The ones that didn't got more educated than Carl. Carl felt more humble and respectful afterward.

PROBLEM: Premise: Sam's family decided they wanted to go on a family vacation.
Initial Context: Sam had never been on a plane before so he was very nervous.
Original Ending: He asked me for some tips on staying calm and so I told him some. He was very grateful but still extremely nervous. On his flight he was fine and thanked me so much when he got home!
Counterfactual Context: Sam had never been on a train before so he was very nervous.

SOLUTION: He asked me for some tips on staying calm and so I told him some He was very grateful but still extremely nervous. his train ride he was fine and thanked me so much when he got home

PROBLEM: Premise: As a kid we didn't go trick or treating.
Initial Context: We would visit my grandma and she would load us up with candy.
Original Ending: There would be so much candy that I could never eat all of it. Now that I am an adult she no longer passes out candy bags. Every year I go out and buy a bunch of candy for myself.
Counterfactual Context: We were allergic to candy.

SOLUTION:
So we passed out candy to the neighbor kids. Now that I am an adult, I'm not allergic anymore. Every year I go out and buy a bunch of candy for myself.