Three-phase elections