The figure shows a network of three NAND gates. Gate 1 has its two inputs joined together and joined to A. Gate 2 has its two inputs joined together and joined to B. Gate 3 takes the outputs of gates 1 and 2 as its inputs, and its output is Y. Which single gate does the network behave like?