Given a sentence containing a grammar mistake, correct the sentence.
The library was visit by hundreds of students
The library was visited by hundreds of students.
Complete the following task based on the instruction and optional input provided.### Instruction:
Given a sentence containing a grammar mistake, correct the sentence.

### Input:
The library was visit by hundreds of students

### Output:
The library was visited by hundreds of students.