Definition: You will see a sentence and a given pronoun. Answer with the word in the sentence to which the pronoun is referring.
Input: text: this morning, joey built a sand castle on the beach, and put a toy flag in the highest tower, but this afternoon the wind knocked it down.; pronoun: it
Output:
the flag