The teacher is going to distribute 77 candies to the students, and he puts these candies in several bags (the number of candies in each bag can be different). When distributing candies, the bags cannot be opened, and each person gets several bags of candies. If there are 7 students, the teacher can make everyone get the same number of candies, if there are 11 students, the teacher can also make each person get the same number of candies, then the teacher needs to divide these candies into at least how many bags.
老师准备将77颗糖果分给学生，他将这些糖果分装在若干个袋子中(每袋糖颗数可以不相同)．分糖果时不能拆开袋子，每人拿到若干袋糖果．如果有7名学生，老师能够使每人得到的糖果颗数相同，如果有11名学生，老师也能使每人得到的糖果颗数相同，那么老师最少需要将这些糖果分为多少袋．
<result>17</result>