Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat problems/geometry/relative-position-of-two-lines

Relative position of two lines

Author Iqbolshoh Ilhomjonov 3 @iqbolshoh 650 problems
Easy 1000 ms 128 MB 24%
Share

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.

Two lines, each through two points, on the coordinate plane and their intersection point

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

Sign in to submit a solution

Signing up is free and takes a minute.