just-add-1

You are given three numbers. Is there a way to replace variables A, B and C with these numbers so the equality A + B = C is correct?

Input:

There are three numbers X1, X2 and X3 (1 ≤ Xi ≤ 10^100), each on a separate line of input.

Output:

Output either "YES", if there is a way to substitute variables A, B and C with given numbers so the equality is correct, or "NO" otherwise.

Sample Input:

1

2

3

Output:

YES

Sample Input:

1

2

4

Output

YES

Sample Input:

1

3

5

Output

NO

SAMPLE INPUT
1
2
3

SAMPLE OUTPUT
YES

Source: hackerearth | Difficulty: UNKNOWN_DIFFICULTY


Solutions:
a=int(input())
b=int(input())
c=int(input())
l=[a,b,c]
def ckh(x,y,z):
	flag=0
	if((x+y)==z):
		flag=1
	return(flag)
p=1
while(p):
	if(l[0]==2*l[2] or l[0]==2*l[1] or l[2]==2*l[1] or l[2]==2*l[0] or l[1]==2*l[2] or l[1]==2*l[0] ):
		print('YES')
		p=0
	else:
		if(ckh(l[0],l[1],l[2])):
			print('YES')
			p=0
		elif(ckh(l[1],l[2],l[0])):
			print('YES')
			p=0	
		elif(ckh(l[2],l[0],l[1])):
			print('YES')
			p=0
		else:
			print("NO")
			p=0


a=[]
a.append(eval(input()))
a.append(eval(input()))
a.append(eval(input()))
a.sort()
if a[0]+a[1]==a[2]:
	print("YES")
elif a[0]+a[0]==a[1]:
	print("YES")
elif a[0]+a[0]==a[2]:
	print("YES")
elif a[1]+a[1]==a[2]:
	print("YES")
else:
	print("NO")



a=[]
for _ in range(3):
	a.append(eval(input()))
a.sort()
print("YES" if (a[0]+a[1]==a[2] or a[0]+a[0]==a[1] or a[0]+a[0]==a[2] or a[1]+a[1]==a[2]) else "NO")
	




a=[]
for _ in range(3):
	a.append(eval(input()))
a.sort()
if a[0]+a[1]==a[2]:
	print("YES")
elif a[0]+a[0]==a[1]:
	print("YES")
elif a[0]+a[0]==a[2]:
	print("YES")
elif a[1]+a[1]==a[2]:
	print("YES")
else:
	print("NO")



n1=int(eval(input()))
n2=int(eval(input()))
n3=int(eval(input()))
#if((n1+n2==n3) or (n1+n3==n2) or (n2+n3==n1)):
#	print 'YES'
if((n1+n2==n3) or (n1+n3==n2) or (n2+n3==n1) or (2*n1==n2) or (2*n1==n3) or (2*n2==n1) or (2*n2==n3) or (2*n3==n1)or(2*n3==n2)):
	print('YES')
elif((n1==0) or(n2==0) or(n3==0)):
	print('NO')
	
else:
	print('NO')


a=int(input())
b=int(input())
c=int(input())
x=[]
x.append(a)
x.append(b)
x.append(c)
x.sort()
if x[0]+x[1]==x[2] or x[0]+x[0]==x[2] or x[1]+x[1]==x[2]:
	print("YES")
else:
	print("NO")


def check(a,b,c):
	if a+b==c or a+c==b or b+c==a:
		return True
	if c%b==0 and c-b==b:
		return True
	if a%b==0 and c-a==a:
		return True
	return False
a=int(eval(input()))
b=int(eval(input()))
c=int(eval(input()))
if check(a,b,c):
	print('YES')
else:
	print('NO')


a=[]
for _ in range(3):
	a.append(eval(input()))
a.sort()
print("YES" if (a[0]+a[1]==a[2] or a[0]+a[0]==a[1] or a[0]+a[0]==a[2] or a[1]+a[1]==a[2]) else "NO")