The half subtractor takes two binary bits x and y as input, and calculates as output the difference , along with a "borrow bit" set to 1 when y > x. The full subtractor takes 3 inputs x, y, and a "borrow in" bit -; and produces as output the difference bit and a "borrow out" bit, -o.