A university's library has been having electricity issues and students have been struggling to study during nights. They have filed a lot of complaints about it. Finally, after finding a good deal on a lighting option, the university decided to fix the issue.
Each light source can illuminate a circle with a radius of , and there are tables in the library and the table is positioned at point . Since the university wants to minimize it's expenses, they want to buy the minimum number of light sources. You have to help the university find the minimum number of light sources , such that each table is illuminated by at least 1 light source.
In other words, your task is to select a minimum number of points in the plane, such that for each given point , there exists a chosen point at a distance of at most .
Note: You can place more than one light source at a specific point.
Input format
Output format
Constraints
Note: Assume that point is at a distance of at most from point , if and here, represents Euclidean distance.
In this sample, we place 3 light sources at points , and . As you can see in the picture below, these points cover all the given points.
However, this answer is not the best possible. You can see that if we place 2 light sources at and , it would also cover all the given points.