{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n h1 { font-size: 1.2em; }\n\u003c/style\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\n\u003cdiv class\u003d\"md\"\u003e\u003cp\u003eThere is a line that goes through the points \u003cspan class\u003d\"math inline\"\u003e$ p_1\u003d(x_1,y_1) $\u003c/span\u003e and \u003cspan class\u003d\"math inline\"\u003e$ p_2\u003d(x_2,y_2) $\u003c/span\u003e. There is also a point \u003cspan class\u003d\"math inline\"\u003e$ p_3\u003d(x_3,y_3) $\u003c/span\u003e.\u003c/p\u003e\n\u003cp\u003eYour task is to determine whether \u003cspan class\u003d\"math inline\"\u003e$ p_3 $\u003c/span\u003e is located on the left or right side of the line or if it touches the line when we are looking from \u003cspan class\u003d\"math inline\"\u003e$ p_1 $\u003c/span\u003e to \u003cspan class\u003d\"math inline\"\u003e$ p_2 $\u003c/span\u003e.\u003c/p\u003e\n\u003ch1 id\u003d\"input\"\u003eInput\u003c/h1\u003e\n\u003cp\u003eThe first input line has an integer \u003cspan class\u003d\"math inline\"\u003e$ t $\u003c/span\u003e: the number of tests.\u003c/p\u003e\n\u003cp\u003eAfter this, there are \u003cspan class\u003d\"math inline\"\u003e$ t $\u003c/span\u003e lines that describe the tests. Each line has six integers: \u003cspan class\u003d\"math inline\"\u003e$ x_1 $\u003c/span\u003e, \u003cspan class\u003d\"math inline\"\u003e$ y_1 $\u003c/span\u003e, \u003cspan class\u003d\"math inline\"\u003e$ x_2 $\u003c/span\u003e, \u003cspan class\u003d\"math inline\"\u003e$ y_2 $\u003c/span\u003e, \u003cspan class\u003d\"math inline\"\u003e$ x_3 $\u003c/span\u003e and \u003cspan class\u003d\"math inline\"\u003e$ y_3 $\u003c/span\u003e.\u003c/p\u003e\n\u003ch1 id\u003d\"output\"\u003eOutput\u003c/h1\u003e\n\u003cp\u003eFor each test, print \"LEFT\", \"RIGHT\" or \"TOUCH\".\u003c/p\u003e\n\u003ch1 id\u003d\"constraints\"\u003eConstraints\u003c/h1\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cspan class\u003d\"math inline\"\u003e$ 1 \\le t \\le 10^5 $\u003c/span\u003e\u003c/li\u003e\n\u003cli\u003e\u003cspan class\u003d\"math inline\"\u003e$ -10^9 \\le x_1, y_1, x_2, y_2, x_3, y_3 \\le 10^9 $\u003c/span\u003e\u003c/li\u003e\n\u003cli\u003e\u003cspan class\u003d\"math inline\"\u003e$ x_1 \\neq x_2 $\u003c/span\u003e or \u003cspan class\u003d\"math inline\"\u003e$ y_1 \\neq y_2 $\u003c/span\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch1 id\u003d\"example\"\u003eExample\u003c/h1\u003e\n\u003ctable class\u003d\"vjudge_sample\"\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3\n1 1 5 3 2 3\n1 1 5 3 4 1\n1 1 5 3 3 2\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eLEFT\nRIGHT\nTOUCH\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/div\u003e "}}]}