Boolean
Boolean-30
Boolean-31
Boolean-32
~/algor $ cat problems/uchburchak-mavjudmi
Does the triangle exist?
Easy
1000 ms
64 MB
20%
The lengths of three segments $a$, $b$ and $c$ are given. Check whether the statement is true: “a triangle can be built from these segments”. For that the sum of any two sides must be strictly greater than the third:
$$a + b \gt c, \qquad a + c \gt b, \qquad b + c \gt a$$
Input
One line with three positive integers: $a$, $b$ and $c$.
Output
One integer: $1$ if the statement is true, otherwise $0$.
Note
$1 \le a, b, c \le 10^{6}$
Examples
Input #1
3 4 5
Output #1
1
Input #2
1 2 3
Output #2
0