Under construction

Still being built. Things may change

Sum Checker

Time limit2sMemory limit1024 MB

Summary
Given three positive integers, the task is to check whether one of them equals the sum of the other two and print 1 or 0.
Level

Easy1 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

Three positive integers A, B, and C are given. Print 1 if one of these values is the sum of the other two, and 0 otherwise.

Input

The input is given in the following format.

A
B
C

Output

Print 1 if one of the values is the sum of the other two, and 0 otherwise. Print nothing other than the result, including any prompt for input.

Constraints

  • 1 ≦ A ≦ 100.
  • 1 ≦ B ≦ 100.
  • 1 ≦ C ≦ 100.
  • All input values are integers.

Examples4

  1. Example 1

    Input
    3
    5
    2
    
    Expected output
    1
    
  2. Example 2

    Input
    2
    3
    4
    
    Expected output
    0
    
  3. Example 3

    Input
    100
    50
    50
    
    Expected output
    1
    
  4. Example 4

    Input
    1
    1
    1
    
    Expected output
    0