Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/ikki-togri-chiziq

Two lines

Easy 1000 ms 64 MB 24%
Share

Two lines are given on the plane: $y = k_{1} * x + b_{1}$ and $y = k_{2} * x + b_{2}$. Determine how they are placed relative to each other: ustma-ust (coincide) if the lines coincide, parallel if they are parallel and do not coincide, and kesishadi (intersect) otherwise.

Two lines on the coordinate plane and their intersection point

Input

One line with four integers: $k_{1}$, $b_{1}$, $k_{2}$ and $b_{2}$.

Output

One word: ustma-ust, parallel or kesishadi.

Note

$-10^{9} \le k_{1}, b_{1}, k_{2}, b_{2} \le 10^{9}$

Examples

Input #1
2 1 -1 4
Output #1
kesishadi
Input #2
3 5 3 -2
Output #2
parallel

Sign in to submit a solution

Signing up is free and takes a minute.