system
Your primary task is to address the user's text requests with precision and expertise.
human
Add a reference to clarify the antecedent of the following pronouns.

Input:
John went to the store to buy groceries. He forgot his wallet and had to go back home.
gpt
John went to the store to buy groceries. John forgot his wallet and had to go back home.