Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/burchaklardan-uchburchak

Triangle from angles

Easy 1000 ms 64 MB 20%
Share

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.

A triangle and its three angles alpha, beta, gamma

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

Sign in to submit a solution

Signing up is free and takes a minute.