CSES - Point Location Test
  • Time limit: 1.00 s
  • Memory limit: 512 MB

There is a line that goes through the points p1=(x1,y1)p_1=(x_1,y_1) and p2=(x2,y2)p_2=(x_2,y_2). There is also a point p3=(x3,y3)p_3=(x_3,y_3).

Your task is to determine whether p3p_3 is located on the left or right side of the line or if it touches the line when we are looking from p1p_1 to p2p_2.

Input

The first input line has an integer tt: the number of tests.

After this, there are tt lines that describe the tests. Each line has six integers: x1x_1, y1y_1, x2x_2, y2y_2, x3x_3 and y3y_3.

Output

For each test, print "LEFT", "RIGHT" or "TOUCH".

Constraints

  • 1t1051 \le t \le 10^5
  • 109x1,y1,x2,y2,x3,y3109-10^9 \le x_1, y_1, x_2, y_2, x_3, y_3 \le 10^9
  • x1x2x_1 \neq x_2 or y1y2y_1 \neq y_2

Example

Input:

3
1 1 5 3 2 3
1 1 5 3 4 1
1 1 5 3 3 2

Output:

LEFT
RIGHT
TOUCH