Separate the nouns from the rest of the words in the following sentence.
The house was painted blue and has a large garden.
Nouns: house, garden.
Rest of the words: was, painted, blue, and, has, a, large.