#1
a = [float(input()) for i in range(3)]
if len(set(a)) == len(a):
print("ERROR")
else:
print("YES")
#2
a, b, c = float(input()), float(input()), float(input())
if a + b == c or b + c == a or a + c == b:
print("yes")
#1
a = [float(input()) for i in range(3)]
if len(set(a)) == len(a):
print("ERROR")
else:
print("YES")
#2
a, b, c = float(input()), float(input()), float(input())
if a + b == c or b + c == a or a + c == b:
print("yes")