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.

Ex Input:
Premise: One year at the school dance they provided free pizza. 
 Initial Context: I was never much of a dancer so I just hung out around the place. 
 Original Ending: Towards the end of the dance I started to get fairly hungry. My friends and I decided that we wanted some pizza. When we got to it they were all out of pizza and we were upset. 
 Counterfactual Context: Being lactose intolerant I could not have a slice.

Ex Output:
Towards the end of the dance I started to get fairly hungry. My friends and I decided that we wanted some pizza, hunger was taking over the though of an upset stomach. When we got to it they were all out of pizza and we were upset. 


Ex Input:
Premise: Devon drove to a restaurant with his wife for dinner. 
 Initial Context: It was impossible to find an empty spot in the parking lot. 
 Original Ending: He dropped his wife off at the restaurant entrance and kept looking. He finally saw an empty stall but another car got there first. He gave up and decided to pay for valet parking. 
 Counterfactual Context: He quickly found a parking spot near the restaurant.

Ex Output:
Then someone stole it so he dropped his wife off at the restaurant entrance and kept looking. He finally saw an empty stall but another car got there first again. He gave up and decided to pay for valet parking. 


Ex Input:
Premise: Throughout Peter's math class, he had a bad headache. 
 Initial Context: Although it was hard for him to pay attention, he tried to be calm. 
 Original Ending: However, he had to leave 45 minutes before the end of class. His friend decided to look for him. He found peter, throwing up in the bathroom. 
 Counterfactual Context: Although it was hard for him to pay attention, he stayed for the whole class.

Ex Output:

However, 45 minutes later he had to leave his next class. His friend decided to look for him. He found peter, throwing up in the bathroom. 


