neural network that operates as a 3bit NAND function