Consider a garden represented as an grid, where each unit cell has dimensions of and contains a pot. The rows are numbered from to from top to bottom. The columns are numbered from to from left to right. Some of these pots within the garden have been broken. The objective is:
We denote the cell on the row and column by .
Input format
Output format
In a new line print space-separated integers representing the maximum number of plants that can be strategically planted and the minimum number of plants required for effective coverage, respectively.
Constraints
Up to four plants can be planted in the garden:
However, it is possible for three plants to occupy the garden:
Here, is the cell where the plant is planted, is broken pot, and represented pots without plants.