- Time limit: 1.00 s
- Memory limit: 512 MB
There is a line that goes through the points and . There is also a point .
Your task is to determine whether is located on the left or right side of the line or if it touches the line when we are looking from to .
Input
The first input line has an integer : the number of tests.
After this, there are lines that describe the tests. Each line has six integers: , , , , and .
Output
For each test, print "LEFT", "RIGHT" or "TOUCH".
Constraints
- or
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