Rejecting duplicate inputs for two correct answers

Maybe this recent thread will give you some ideas.