Resolve the pronoun to the antecedent it refers to.
John had an apple. He ate it.
In the given sentence, the pronoun "He" refers to the antecedent "John," and the pronoun "it" refers to the antecedent "apple."
Complete the following task based on the instruction and optional input provided.### Instruction:
Resolve the pronoun to the antecedent it refers to.

### Input:
John had an apple. He ate it.

### Output:
In the given sentence, the pronoun "He" refers to the antecedent "John," and the pronoun "it" refers to the antecedent "apple."