Boolean
Boolean-29
Boolean-30
Boolean-31
~/algor $ cat problems/burchaklardan-uchburchak
Triangle from angles
Easy
1000 ms
64 MB
20%
Three angles $\alpha$, $\beta$ and $\gamma$ (in degrees) are given. Check whether the statement is true: “a triangle with angles $\alpha$, $\beta$ and $\gamma$ exists”. For that every angle must be positive and their sum must equal $180$ degrees.
Input
One line with three integers: $\alpha$, $\beta$ and $\gamma$.
Output
One integer: $1$ if the statement is true, otherwise $0$.
Note
$0 \le \alpha, \beta, \gamma \le 180$
Examples
Input #1
60 50 70
Output #1
1
Input #2
90 90 0
Output #2
0