Transform the following sentence by replacing “was” with “were”.
The dog was happy when it heard the sound.
The dog were happy when it heard the sound.
Complete the following task based on the instruction and optional input provided.### Instruction:
Transform the following sentence by replacing “was” with “were”.

### Input:
The dog was happy when it heard the sound.

### Output:
The dog were happy when it heard the sound.