Geometry
Geometry-02
Geometry-03
Geometry-04
~/algor $ cat problems/geometry/relative-position-of-two-lines
Relative position of two lines
Easy
1000 ms
128 MB
24%
Two lines are given on the plane: the first passes through points and , the second through points and . 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: , , , , , , and .
Output
One line with the corresponding word: KESISHADI, PARALLEL or USTMA_UST.
Note
and do not coincide, and neither do and .
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