Edit the following sentence by replacing two words
The dog happily played in the backyard.
The cat joyfully frolicked in the garden.
Complete the following task based on the instruction and optional input provided.### Instruction:
Edit the following sentence by replacing two words

### Input:
The dog happily played in the backyard.

### Output:
The cat joyfully frolicked in the garden.