logic gates with three inputs - Search