3 input nand gate