Farmer John is redesigning his farm by rearranging all $N$ fences between his pastures ($1 \le N \le 1000$). Each fence is a straight line segment in the 2D plane. Two fences may meet only at their endpoints, and every fence meets exactly two other fences — one at each of its two endpoints. As a result, the fences form one or more disjoint closed polygons.
Farmer John has $C$ cows ($1 \le C \le 1000$). Each cow stands at a point that lies on no fence, and no two cows stand at the same point. Two cows belong to the same community if one of them can walk to the other without ever crossing a fence.
Report the size of the largest community.
All coordinates are integers from 0 to 1,000,000.
Because the fences form closed loops, two cows share a community exactly when the same set of loops encloses both of them. In the sample, the fences form a square that contains two triangles; two of the four cows fall inside the same set of loops and share a community, while the remaining two are each alone.