Geometry
Geometry-02
Geometry-03
Geometry-04
~/algor $ cat problems/togri-chiziqlar-holati
Two lines
Easy
1000 ms
128 MB
24%
Two lines are given on the plane: the first passes through points $A(x_{1}; y_{1})$ and $B(x_{2}; y_{2})$, the second through points $C(x_{3}; y_{3})$ and $D(x_{4}; y_{4})$. If the lines intersect at one point, print KESISHADI; if they are parallel and have no common point, print PARALLEL; if they coincide, print USTMA_UST.
Input
One line with eight integers: $x_{1}$, $y_{1}$, $x_{2}$, $y_{2}$, $x_{3}$, $y_{3}$, $x_{4}$ and $y_{4}$.
Output
One line with the corresponding word: KESISHADI, PARALLEL or USTMA_UST.
Note
$-10^{9} \le x_{i}, y_{i} \le 10^{9}$
$A$ and $B$ do not coincide, and neither do $C$ and $D$.
Examples
Input #1
0 0 2 2 0 2 2 0
Output #1
KESISHADI
Input #2
0 0 1 1 2 2 5 5
Output #2
USTMA_UST