Subtract the following numbers using the standard method.

111 1110 0010 - 100 0111 - 111 =

Subtraction is done as in decimal, one digit at a time from the right. Borrow from the left digit if necessary.

If the result is expected to be negative, reverse the subtraction (to get a positive difference) and then change the sign.

Example:

1101
-0110
-----
0111