Boolean
Boolean-05
Boolean-06
Boolean-07
~/algor $ cat problems/boolean-ishoralari-bir-xilmi
Same sign?
Easy
1000 ms
64 MB
12%
Two non-zero integers $A$ and $B$ are given. Check whether the statement is true: “$A$ and $B$ have the same sign”, that is, both are positive or both are negative.
Input
One line with two integers: $A$ and $B$.
Output
One integer: $1$ if the statement is true, otherwise $0$.
Note
$-10^{9} \le A, B \le 10^{9}$
$A \ne 0$, $B \ne 0$
Examples
Input #1
5 7
Output #1
1
Input #2
3 -2
Output #2
0