There are several students, numbered in the order from 1, 2, 3, ..., the sum of all the numbers is a whole number of ten, and it is a multiple of 13, and this number is less than 1000. How many students are there?
有若干个学生，按从1，2，3，…，的顺序编号，所有号数的和是一个整十的数，且为13的倍数，这个数小于1000．共有多少个学生？
<result>39</result>