Hogwarts song, each student in turn is seated upon the stool in front of the rest of the student body. The Hat is placed on the student's head, whereupon it examines his or her mind and assigns them to one of the four Houses based on abilities, personality, and preferences. After the Sorting Ceremony, the students and teachers enjoy a feast, prepared by the Hogwarts house-elves. If Dumbledore is feeling cheerful, he will lead the students in singing the school song. Hogwarts is divided into four houses, each bearing the last name of its founder: Godric Gryffindor, Salazar Slytherin, Rowena Ravenclaw
Hogwarts and Helga Hufflepuff. Throughout the school year, the houses compete for the House Cup, gaining and losing points based on actions such as performance in class and rule violations. The house with the highest end-of-year total wins and has its colours displayed in the Great Hall for the following school year. Each house also has its own Quidditch team that competes for the Quidditch Cup. These two competitions breed rivalries between the houses. Houses at Hogwarts are living and learning communities for their students. Each house is under the authority of one of the Hogwarts staff members. The Heads of