quad 2 input and