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
Other words: The, was, painted, blue, and, has, a, large.
Complete the following task based on the instruction and optional input provided.### Instruction:
Separate the nouns from the rest of the words in the following sentence.

### Input:
The house was painted blue and has a large garden.

### Output:
Nouns: house, garden
Other words: The, was, painted, blue, and, has, a, large.