The truth table on page 4 in this datasheet tells you every input/output combination. There are two sets of input data that generate an "8" at the output.
Oops! I didn't notice this question was in the Homework Forum. My bad. The reply that @Harald Kapp made in his post #2 says all that needs to be said. I will ask no more "trick" questions. Moderator, please close this thread.
That's probably true, but given that there has been no reply, no dialog established, nor any further questions asked by the op, I would flag this as a "drive-by" poster who is not interested in learning how to read a datasheet but just wants someone to provide a quick and painless answer to their homework problem.