NOT and NAND gates are respectively :