On the island of knights and liars, a tennis tournament was held, in which $100$ people participated in. Each two of them played exactly $1$ time with the other one. After the tournament, each of the participants declared: “I have beaten as many knights as liars,” while all the knights told the truth, and all the liars lied. What is the largest number of knights that could participate in the tournament?