Rule Learning

Input Example:

 

Explanation of the Example: