There is a beautiful garden with many trees in front of Eunjin's house.
A new law requires every garden to be surrounded by a fence. The fence must be an axis-aligned rectangle, and every tree that remains standing must be inside the fence or on its boundary.
Eunjin cannot afford to buy fence material, so she must cut down some of the trees in the garden and use them to build the fence. For each tree, its position (x, y) and the length of fence material obtained by cutting it down are given.
Because Eunjin loves trees, she wants to cut down as few trees as possible. Find the minimum number of trees she must cut down to satisfy the new law.
A rectangle may have width 0 or height 0. It is also considered a rectangle when both are 0.