~/algor $ cat problems/if-nuqta-va-tortburchak
Point and rectangle
Medium
1000 ms
64 MB
42%
The lower-left corner $(x_{1}; y_{1})$ and the upper-right corner $(x_{2}; y_{2})$ of a rectangle with sides parallel to the coordinate axes are given, as well as a point $(x; y)$. Print ichida (inside) if the point lies inside the rectangle (not on its border), chegarada (on the border) if it lies on the border (on a side or at a corner), and tashqarida (outside) otherwise.
Input
One line with six integers: $x_{1}$, $y_{1}$, $x_{2}$, $y_{2}$, $x$ and $y$.
Output
One word: ichida, chegarada or tashqarida.
Note
$-10^{9} \le x_{1} \lt x_{2} \le 10^{9}$
$-10^{9} \le y_{1} \lt y_{2} \le 10^{9}$
$-10^{9} \le x, y \le 10^{9}$
Examples
Input #1
0 0 4 3 2 1
Output #1
ichida
Input #2
0 0 4 3 4 2
Output #2
chegarada