I need to project an serial binary comparator with two inputs x1, x2 and three outputs y1, y2, y3.

The binary numbers come on the inputs the same time from the most significant bit.

On the outputs I need to get a logical "1" at the y1 if A>B, on y2 if A=B, and on y3 if A<B.

I can only use one JK flip-flop, one D flip-flop, and AND, OR, NOT circuits.

Any ideas ? :/