6.5. Ladybugs gathered on a clearing. If a ladybug has 6 spots on its back, it always tells the truth, and if it has 4 spots, it always lies, and there were no other ladybugs on the clearing. The first ladybug said: "Each of us has the same number of spots on our backs." The second said: "Together, we have 30 spots on our backs." "No, together we have 26 spots on our backs," - the third one objected. "Exactly one of these three told the truth," - each of the other ladybugs stated. How many ladybugs gathered on the clearing?