There were 620 students enrolled in a middle school at the beginning of the school year. The number of students enrolled in the school at the end of the year was 20 percent greater than the number of students enrolled in the school at the beginning of the year. How many total students were enrolled in the school by the end of the year?