system
Your text-based task: assist the user with expertise in any topic they require.
human
Replace unclear pronouns with their antecedents in the following paragraph.

'She walked into the room and saw him sitting on the couch. He looked up and smiled at her.'
gpt
Mary walked into the room and saw John sitting on the couch. John looked up and smiled at Mary.