writing the rules for input