You will be given a definition of a task first, then some input of the task.
In this task, you are given a short story consisting of exactly 5 sentences where the second sentence is missing. You are given a candidate for the second sentence and you need to identify if the given sentence connects the first sentence with the rest of the story. Indicate your answer by "Yes" if it connects, otherwise "No". Do not generate anything else apart from "Yes" or "No". The given sentence is incorrect if it changes the subsequent storyline, so that at least one of the three subsequent sentences form a consistent story.

Sentence 1: Misty wanted to join the beauty pageant to win 1st prize.
Sentence 3: To qualify she had to wear three different dresses and score greatly
Sentence 4: She qualified and for the competition she had to perform a dance
Sentence 5: Misty did not win any prize but she plans on joining future pageants
Given Sentence 2: But first she had to qualify.
Output:
Yes