Edit this following sentence so that it's grammatically correct.
The window were opened by him.
The window was opened by him.
Complete the following task based on the instruction and optional input provided.### Instruction:
Edit this following sentence so that it's grammatically correct.

### Input:
The window were opened by him.

### Output:
The window was opened by him.