three input and gate - Search