Hobbiton Farms

No attempts yetTime limit1sMemory limit128 MB

Problem

The Home Owners Association (HOA) of Hobbiton — the village in the Shire where Bilbo lives — wants to draw a new map that shows the exact boundaries of every house's land parcel. This is tricky, because a parcel may be shaped either as a circle or as an axis-aligned rectangle.

Before drawing the map, the HOA wants to confirm that its records are consistent, and in particular that no two parcels overlap. It already knows how to test two circles against each other, and two rectangles against each other. It needs your help with the remaining case: one parcel is a rectangle and the other is a circle.

For each pair, decide whether the circle and the rectangle overlap, i.e. whether they share at least one common point.

Input

The first line contains the number of test cases $T$ (with $T < 100$). Each of the next $T$ lines contains one test case: seven positive real numbers (of type double)

$$r,\ x_c,\ y_c,\ x_l,\ y_l,\ x_u,\ y_u.$$

  • $r$, $x_c$, $y_c$ — the radius $r$ and the center $(x_c, y_c)$ of the circle;
  • $x_l$, $y_l$ — the lower-left corner of the axis-aligned rectangle;
  • $x_u$, $y_u$ — the upper-right corner of the rectangle.

All seven numbers are positive.

Output

For each test case, print exactly one line. If the circle and the rectangle overlap, print

The given circle and rectangle overlap.

Otherwise print

The given circle and rectangle do not overlap.