Median Democrat theorem