There are 30 senators in a senate. For each pair of senators, the two senators are either friends of each other or enemies of each other. Every senator has exactly six enemies. Every three senators form a committee. Find the total number of committees whose members are either all friends or all enemies of each other.