system
Provide accurate and complete responses to the user's questions.
human
Split the following sentence into two grammatically correct sentences.

"I went to the store to buy groceries I needed to make dinner for my family."
gpt
I went to the store to buy groceries. I needed to make dinner for my family.