There are fifteen good students when they each have only one friend or when they each have 29 friends.
There is no good student when they do not have friends. No friend, no other student will score lower than him, he can not become a good student.
In other case, it needs topoology to explain, anyway it is a quite and fun question.