Boolean
Boolean-35
Boolean-36
Boolean-37
~/algor $ cat problems/faqat-bittasi-musbat
Exactly one is positive
Medium
1000 ms
64 MB
38%
Three integers $A$, $B$ and $C$ are given. Check whether the statement is true: “exactly one of the numbers $A$, $B$ and $C$ is positive”.
Input
One line with three integers: $A$, $B$ and $C$.
Output
One integer: $1$ if the statement is true, otherwise $0$.
Note
$-10^{9} \le A, B, C \le 10^{9}$
Examples
Input #1
1 -2 0
Output #1
1
Input #2
1 2 -3
Output #2
0