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

~/algor $ cat problems/qaysi-oqqa-yaqin

Which axis is closer?

Easy 1000 ms 64 MB 23%
Share

A point $(x; y)$ is given on the plane. Its distance to the $OX$ axis is $|y|$, and to the $OY$ axis it is $|x|$. Determine which axis the point is closer to.

A point on the coordinate plane and perpendiculars to both axes; the shorter one highlighted

Input

One line with two integers: $x$ and $y$.

Output

One word: OX, OY, or teng if the distances are equal.

Note

$-10^{9} \le x, y \le 10^{9}$

Examples

Input #1
5 -2
Output #1
OX
Input #2
-3 3
Output #2
teng

Sign in to submit a solution

Signing up is free and takes a minute.