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

~/algor $ cat problems/birinchi-chorakdami

In the first quadrant?

Easy 1000 ms 64 MB 18%
Share

A point $(x; y)$ on the plane is given. Check whether the statement is true: “the point lies in the first coordinate quadrant”, that is, $x \gt 0$ and $y \gt 0$.

The first quadrant of the coordinate plane and a point in it

Input

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

Output

One integer: $1$ if the statement is true, otherwise $0$.

Note

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

Examples

Input #1
1 1
Output #1
1
Input #2
-1 1
Output #2
0

Sign in to submit a solution

Signing up is free and takes a minute.