a,b,c = int(input()), int(input()), int(input())
if (a + b == c) or (a + c == b) or (c + b == a):
print("YES")
else:
print("NO")
a,b,c = int(input()), int(input()), int(input())
if (a + b == c) or (a + c == b) or (c + b == a):
print("YES")
else:
print("NO")