Complex cmos gate