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

~/algor $ cat problems/boolean-biri-qolganlari-yigindisi

One is the sum of the others

Easy 1000 ms 64 MB 15%
Share

Three integers $A$, $B$ and $C$ are given. Check whether the statement is true: “one of these numbers equals the sum of the other two”, that is, $A = B + C$ or $B = A + C$ or $C = A + B$.

One of the numbers equals the sum of the other two

Input

One line with three integers: $A$, $B$ and $C$.

Output

One integer: $1$ if the statement is true, otherwise $0$.

Note

$-10^{6} \le A, B, C \le 10^{6}$

Examples

Input #1
2 5 3
Output #1
1
Input #2
1 2 4
Output #2
0

Sign in to submit a solution

Signing up is free and takes a minute.