One day, farmer Peter got an agricultural land from his friendand he plans to divide the land into numbers of field for plantingdifferent crops. The land has numbers of non-removable stones thatcan be used to build the partitions of fields. To make it simple,field will be in form of rectangle with its sides either parallelsto x-axis or yaxis. The corners of a field must build on a stone.Fields can share partition and having stone placed inside butcannot be overlapped. For example, the land shown below got 9stones in the middle and four possible fields can be made.
Without
OR
OR