We are neither telepathic nor omniscient, you know.

You need to define those rules for us to be able to help you.

If you don't know the rules, but can show a complete set of inputs and outputs,...