~/algor $ cat problems/ikki-togri-chiziq
Two lines
Easy
1000 ms
64 MB
24%
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.
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