eolymp
bolt
Try our new interface for solving problems
Problems

Numbers of the same sign

Numbers of the same sign

Two nonzero integers $n$ and $m$ are given. Print $1$, if numbers $n$ and $m$ have the same sign and $0$ otherwise. \InputFile Two nonzero integers $n$ and $m$ , no more than $10^9$ by absolute value. \OutputFile Print $1$, if numbers $n$ and $m$ have the same sign and $0$ otherwise.
Time limit 1 second
Memory limit 128 MiB
Input example #1
7 4
Output example #1
1
Input example #2
-2 5
Output example #2
0
Author Matviychuk Sergiy
Source "ABC programming"