Logic Gate with Different Inputs - Search