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: Dan loses his job.
Initial Context: His friends try to give him money.
Original Ending: But he is too proud to take it money from friends. So they set up a fake radio contest and rig it for him to win. He never finds out the truth.
Counterfactual Context: His friends try to get him his job back.

SOLUTION: But he is too proud to take the position from his friends. So they call a radio contest and get an interview for him He finds out the truth and is happy.

PROBLEM: Premise: Manny walked down the street and crossed it.
Initial Context: He walked three more blocks to an ice cream store.
Original Ending: He ordered an ice cream and ate it. He read the paper. He walked home.
Counterfactual Context: He got hit by a car but wasnt injured.

SOLUTION: He brushed himself off, and left and went and ordered an ice cream and ate it. He read the paper. He walked home.

PROBLEM: Premise: I was driving home last week during the snowstorm.
Initial Context: It had just started so I thought I was safe.
Original Ending: All of a sudden I lost control of the car. I had hit a patch of black ice. I was able to get control but learned a valuable lesson.
Counterfactual Context: It had just started when I arrived home.

SOLUTION:
All of a sudden I fell down when I got out of the car at home. I had slid a patch of ice in the driveway. I was able to get back up but learned a valuable lesson.